just a couple of refinement suggestions...
The way that your vi is currently wired, the Stop button is read immediatly once the loop executes.
That means that after you press the stop button, you still have to wait
for the remainder of the 1000ms to lapse, then it loops again because
the value of the stop button has already been read as FALSE before you pressed
it.
To fix this problem...
Check the value of the Stop button AFTER your main case executes. (Maybe put it in a sequence structure wired to an output of the main case.)
Instead of using a 'wait(1000ms)', use a 'Wait Until Next ms Multiple'.
Move the 'Wait Until Next ms Multiple' into the FALSE case of a new case structure from the value of the Stop button. (So you only wait the 1000ms if the stop button hasn't been pressed.)

That should help it to stop faster and without executing another loop. It may be a bit crude, but it will work.
Message Edited by Troy K on
01-18-2008 12:53 PM
Troy - CLD
"If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument