05-22-2015 02:52 AM
Hello,
I have a Tree and Subpanel in Main.vi, and a SubVI that must be instanced 6 times. If I click an item on tree, SubVI is loaded in Subpanel and shows everything, so far so gut. How can I communicate between Main.VI and SubVI in Subpanel, that is instanced more than one? I should use named Queue I know but how?
If I have only one Queue named "SubVI", do all insances get same MQ? How can I get a MQ for each SubVI Instance?
Thanks.
05-22-2015 06:29 AM
You can generate multiple queues in the caller and pass the reference of the specific queue to the subVI. The easiest way to do this is to perform an asynchronous call, which allows you to pass in the value through the connector pane. For that you will need to give the Open VI Reference function specific values on the options input and a strict reference to the subVI (easiest is dropping a Static VI Reference, dragging the subVI into it and then right clicking it). Read the help and look at the examples to see exact details.