LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping a nested loop without stopping the whole application

I have a while loop within a case statement within a while loop. When the inner while has done what it needs to do I need it to 'break' rather than stop. At the moment it stops and stops the whole application, which kinda defeats the object. Is there a 'simple' way of getting the inner loop to stop but to have the application carry on and renter the inner loop as more data becomes available?
0 Kudos
Message 1 of 4
(2,604 Views)
Tacking a Boolean constant (TRUE) to the case structure seems to do the trick.
0 Kudos
Message 2 of 4
(2,604 Views)
Do you have the stop condition in the inner while loop wired to the stop in the outer while loop? If that's the case, you need two different stop conditions so that the outer while loop continues to run. If that's not the case, it would be nice to see an example of your VI to determine what is stopping the outer while loop.
0 Kudos
Message 3 of 4
(2,604 Views)
No I don't have the two stop conditions wired together.
A seperate stop for each while. Though now having taken off the boolean constant it's behaving as I wanted it to :}
0 Kudos
Message 4 of 4
(2,604 Views)