LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pausing a while loop

I have a while loop that polls for hardware errors. When it finds an error, it launches a subvi that notifies the user of the errors. Once the errors are resolved, I would like the polling loop to resume. Is there a way to pause the while loop? Or to stop it and then start it again?

Thanks.
0 Kudos
Message 1 of 3
(2,838 Views)
If you call the subVI as described in your other posting, the main VI is paused until the subVI is closed - presumably by clicking an OK button on the subVI.
0 Kudos
Message 2 of 3
(2,828 Views)
Hello Kasey,

you can stop a while loop and start it again by putting a second while loop around it where your program waits for some trigger signal to start the loop again (perhaps a start button on the user interface).
You can pause any loop by inserting one of the time functions ("wait", "wait for next ms multiple").

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,825 Views)