From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


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. is blocked unless and are terminated. So in this sense they do not run in parallel, but they both have to be running.
Using LV8.0
Don't be afraid to rate a good answer... 😉
Message 11 of 13
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
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.
0 Kudos
Message 13 of 13