LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVIs within subVis ...

Hello I have for once, I believe, a basic and simple question and I seek out the all-knowing LabVIEW community once again for an answer!
 
If my main VI runs a non-reentrant subVI (just for fun we'll call it 'Biff') and all Biff does is run a subVI within itself (we'll call this one 'Joe'), can the main VI call Biff again or does it have to wait for Joe to finish running?
 
I know if the main VI runs a subVI, the main VI cannot run that subVI anywhere else until the first call to it is complete. I'm just curious what happens when a subVI runs a subVI.  When a subVI runs a subVI, the first subVI doesn't stop running until it's subVI is complete, correct? I think that is how it works but I want to make certain.
 
Thanks guys!
 
-- Jase
0 Kudos
Message 1 of 2
(2,310 Views)
Yes, you are correct : a VI will not complete until its subVIs are finished.
This is also true for the subVIs and their own subVIs... and therefore a VI will only complete when all of its subVIs - of all levels of the hierarchy - are finished.

Message 2 of 2
(2,297 Views)