LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping a while-loop in a sub-vi

Hello,

I want to stop a while loop that runs in a sub-vi. It does not work with a local variable, is there a possibility to implement this without using global variables?

Many thanks !
0 Kudos
Message 1 of 4
(2,795 Views)
One way is to use a notifier.
See attached - Uses LV 7.1.

Message Edited by NeilR on 05-04-2005 08:10 AM

0 Kudos
Message 2 of 4
(2,776 Views)
There are many different ways of doing this. you could use notifiers or ques or just simply pass a reference to a stop button and use a property node to control a loop. I would suggest looking at the many examples that ship with labview for a demostration of each.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 4
(2,764 Views)
Great !

Thank you very much !
0 Kudos
Message 4 of 4
(2,762 Views)