LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to control one loop with another?

I want to start or stop one loop with a value from another. But the second loop don´t start. In the highlighted mode I can see that the data stops at the border of the loop. Can someone help me?

Thanks
0 Kudos
Message 1 of 3
(2,786 Views)
The second loop will never start because the first loop never ends, and the two are tied together with the boolean wire. You need to use a local variable or property node. See attached.
==============================================

0 Kudos
Message 2 of 3
(2,786 Views)
The boolean data will not advance beyond the first loop until the loop is finished. To do what you want, put the second loop inside the first loop. That way, the data will be available to the second loop for each iteration of the first loop. I have modified your original vi and attached it. I also used front panel stop controls to exit each loop.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 3
(2,786 Views)