07-18-2017 02:46 PM
I currently have two while loops, one configured with a boolean T/F button for stop and the other stop is dependent upon reaching a for loop count of n-samples or greater. I was wondering how to make either loop stop at the same time the other loop stops. I've looked into notifiers, queues and also local variables but my only constraint is that I want the stop button to remain "Latch When Released" if possible unless there is a way to rest the button after each program run. Let me know if you have any questions.
Thank you
07-18-2017 03:02 PM - edited 07-18-2017 03:03 PM
You can use an event structure in one loop and the stop terminal in the other. Button can remain latch action.
If you use a local variable, you can reset it with another local variable after both loops have stopped.
If you need more targeted advice, shows us your code. Your description is not very clear. What does each loop do?