george seifert Posted June 20, 2006 Report Share Posted June 20, 2006 I have a timed loop that can have a time between iterations of up to several minutes. I want to be able to stop the loop when the user presses a button. The way I stop the timed loop now is by monitoring the button in another faster timed loop (1 sec). When the button is pressed I stop the fast loop and then run the Stop Timed Structure VI to stop the slower loop. I'll stop the slower loop also if an error occurs there in which case I then have to run the Stop Timed Structure VI to stop the faster loop. This seems a bit convoluted and was wondering if there's a more elegant solution. Quote Link to comment
Guillaume Lessard Posted June 20, 2006 Report Share Posted June 20, 2006 There is a thread here where people have shared some nice VIs. jpdrolet's "loop continue" is excellent for stopping parallel loops, and it might work well for you. I use it all the time now... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.