LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass data between the main VI and VI within a sub-VI?

Lynn is right, but the vis do not have to run in parallel. Have a look at the attached example. Main.vi is blocked unless Sub1.vi and Sub2.vi are terminated. So in this sense they do not run in parallel, but they both have to be running.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 11 of 13
(792 Views)
See attached which has a main vi (Main) which loads a sub-vi (Sub-1), which loads another sub-vi (Sub-2).
The boolean lying in Main is updated in Sub-2
 
Hope this helps.
Gurdas Sandhu, Ph.D.
ORISE Research Fellow at US EPA
Message 12 of 13
(785 Views)
The two attachments basically did the same thing and they are exactly what I needed. I implemented this same technique into my VI/Sub-VIs and it works perfectly. I was actually over complicating the process and that is why it did not work. I just needed to see these simple examples, sit back and understand what was going on, and then integrate it into my program. Thank you all for your time in resolving this problem.
 
Troy
0 Kudos
Message 13 of 13
(777 Views)