08-30-2005 08:40 AM
08-30-2005 08:44 AM
08-30-2005 08:44 AM
08-30-2005 08:46 AM
The simplest means, if the while loops are all in the same vi, is to use a local variable of the stop button. You can create these by right clicking on the control on the diagram and selecting the "create local" selection. Your run arrow may be broken if the switch has the wrong "mechanical action", which you can change on the front panel.
P.M.

08-30-2005 09:21 AM
08-30-2005 09:38 AM
08-30-2005 11:38 AM
08-30-2005 11:46 AM
08-30-2005 02:58 PM
Personally, I prefer event structures. You can have an event in each loop that gets triggered by the same stop button. The timeout event contains your normal code. The timeout sets the loop rate.
Notice that the VI does not stop after the stacked loops have finished. The upper loop still waits for the stop button.
See attached. (LabVIEW 7.0, converted, but not tested from 7.1).
08-30-2005 03:39 PM