01-13-2016 12:28 PM
I couldn't view Paul's, but I think the pause/resume is probably the best way to go (as the loop can respond to different messages when not running the timeout code). Here is a version using an event structure just for fun.
01-13-2016 02:03 PM
No need to get so complicated.
(anybody spot the bug in the vi in my earler post?)
01-14-2016 02:05 AM
Hello paul_cardinale,
A problem appears with your VI. The isn't stop right away, as event structure buffered event, it take several iteration before pausing.
However, it's a good idea.
regards.
01-14-2016 09:24 AM
Hi Jatlauoi,
It depends how you define right away. If you press pause when i=0, that will trigger an event and update i=1, it will then start the next loop and update i=2 but be waiting on the event structure before making another move. The only loop cycle used up by flipping the switch is i=1, so I would say that it stops right away.