LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate between Main.vi and more instanced reentrant VI in Subpanel?

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.

0 Kudos
Message 1 of 2
(2,569 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,543 Views)