LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loop Control

I,m trying to control a case structure loop. I have a case structure loop which turns on and off an output at different intervals. What I want to do is be able to at any time pause this loop, and then on a button press restart the loop. Almost like the actions of a stop watch.
0 Kudos
Message 1 of 2
(2,481 Views)
In your loop, create a case structure to test your pause button. If false, do nothing. If true, run another loop with a case structure that tests the continue button. If this button is false, continue looping. If true, exit out of the inner loop. Make sure your two buttons are of mechanical action latch type. Don't forget to put a delay inside the inner loop to allow the processor time for other events.
- tbob

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