LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Whats the best way to stop a .vi

Solved!
Go to solution

Using multiple While loops. Is it best to wire up all loops to one stop using locals?? or is there a better way??

 

Stu

0 Kudos
Message 1 of 6
(3,204 Views)
Solution
Accepted by stu22

I generally agree with the example smercurio gave.

Have a "main" while loop that makes a queue to pass to the other loops.

When the user wants to stop the VI, the main loop will control the order in which the rest of the code should stop.

Cory K
Message 3 of 6
(3,199 Views)

I like using queues or notifiers.

Never Locals..

 

I might use a ActionEngine if it is used to propagate status or events.

0 Kudos
Message 4 of 6
(3,172 Views)

 


@Ray.R wrote:

I like using queues or notifiers.

Never Locals..

 

I might use a ActionEngine if it is used to propagate status or events.


.... and here comes Ben Smiley Happy

 

Cory K
0 Kudos
Message 5 of 6
(3,159 Views)

Generally i avoid queues, not sure why lol But i like this answer. Simple and elegant.

 

Thanks Stuart

0 Kudos
Message 6 of 6
(3,151 Views)