Greg Hupp Posted December 10, 2008 Report Posted December 10, 2008 I have an application in development that I need to have a main controlling application and several other dynamically loaded VIs ("slaves"). The main application acts as the master controller for communication and control over processes dealt to the respective dynamic VIs. Therefore, all these need to be parallel processes. I think this application is perfect for using queues: 1 for the master VI and 1 created by the master for each of the dynamic VIs. I can then pass each dynamic VI the queue references for the master and the one created by the master for the slave VI for bidirection communication between the master and slaves. However, how is the best way to pass the queue references? If I use a call by reference that allows inputs that can be the queues, the execution is halted for the master VI until the slave finishes. This defeats the parallel operation requirement. If I use the Run VI method and set the Wait for Finish to False, this works but I cannot pass the queue references into the slave VI. Any thoughts/ideas? Quote
LAVA 1.0 Content Posted December 10, 2008 Report Posted December 10, 2008 QUOTE (Greg Hupp @ Dec 9 2008, 12:08 PM) I have an application in development that I need to have a main controlling application and several other dynamically loaded VIs ("slaves"). The main application acts as the master controller for communication and control over processes dealt to the respective dynamic VIs. Therefore, all these need to be parallel processes.I think this application is perfect for using queues: 1 for the master VI and 1 created by the master for each of the dynamic VIs. I can then pass each dynamic VI the queue references for the master and the one created by the master for the slave VI for bidirection communication between the master and slaves. However, how is the best way to pass the queue references? ... Any thoughts/ideas? We where just discussing this topic on "the Dark-Side" this AM http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=373364#M373364' target="_blank">in this thread. This image illustrates how I am using teh "Invoke Node Run VI method after setting a control on the VIT I am spawning off to run in the background. Ben Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.