ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

expire loop delay

I need to expire a loop delay timer that has a long interval (roughly 5 minutes or more) so the user can stop the application using the UI and not have to wait 5 minutes for the timer to expire. Any ideas? Thanks ahead of time for your response.

I could use a "Halt" but this will not let the loop complete the final cycle and properly stop.
0 Kudos
Message 1 of 3
(2,669 Views)
Place your code inside the loop in an event structure with a timeout of your desired loop delay. Now add a second event to break it. 🙂
Message 2 of 3
(2,663 Views)
Thanks,

That worked out just fine. I had totally forgotten about the event timer and thats why I asked of course.

Btw, I put a case structure in the event to "pause/run" my time-out case.

cheers,
richjoh
0 Kudos
Message 3 of 3
(2,644 Views)