LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Loop Stop

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

0 Kudos
Message 1 of 2
(2,569 Views)

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?

0 Kudos
Message 2 of 2
(2,563 Views)