LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling a while loop

I have 2 parallel while loops. The main will run all the time. The
slave loop I need to turn on and off at will. Can someone present a
simple exampl have how to do this?

Thank You

0 Kudos
Message 1 of 2
(2,459 Views)
There are a number of ways to do this.  I think two of the simplest are in the attached image.  If you want to make your code a little more robust, I'd use queue's instead of local variables, so as to prevent race conditions and have your code a little more deterministic.  If you do go the local variable route, make sure the mechanical action of the control itself is one of the switching ones, because if the action is latching, LabVIEW might not catch it (which speaks to the non-determinism of locals).

Hope this helps.


Message Edited by Day on 09-26-2006 01:56 PM

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