From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

While Loops and SubVi

I tried to use a while loop in a subvi. I wired the conditional to the main vi throght the connector panel,but had problems. Is it possible to use a while loop in a subvi?
0 Kudos
Message 1 of 2
(2,722 Views)
Hyatt,
You may have better luck getting an answer to this if you post to the LabVIEW General forum.

However the reason this is not working is that when you call a SubVI the values from a Main VI are passed 1 time. Therefore you can not change the SubVIs stop terminal from the Main VI, by passing the boolean. You could do it with globals or passing by refernce.
Message 2 of 2
(2,722 Views)