04-12-2015 09:00 AM
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?
Solved! Go to Solution.
04-12-2015 10:06 AM
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).
04-12-2015 12:39 PM - edited 04-12-2015 12:40 PM
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.