LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

If I use a "wait" in my sub-vi will it affect my outer vi

Solved!
Go to solution

I put a "wait" in a sub-vi and another vi use the sub-vi. While the wait is working in the sub-vi will the outer vi wait until the wait finished or it just continiue its work?

0 Kudos
Message 1 of 3
(2,415 Views)
Solution
Accepted by topic author nimber

That depends how you are calling the subVI, but yes, in general dataflow dictates execution order.

 

This is a very basic dataflow question and I recommend you do a few tutorials first. Typically the easiest way to answer the question would be to just try it. Have you?

 

(You can do asynchronous calls, but that's and advanced topic).

0 Kudos
Message 2 of 3
(2,398 Views)

More specifically, all code in the main VI that depend on the subVI will have to wait until the subVI completes. If the main VI has a parallel loop, that other loop will continue to spin, for example. If there is code in parallel to the subVI, that will also complete. However dependent parts of the code will have to wait. For example, a loop cannot go to the next iteration until the subVI contained in it has completed. 

0 Kudos
Message 3 of 3
(2,363 Views)