01-27-2020 06:34 AM
Hi,
I currently have a motor which is controlled by a Boolean switch (Motor On/Off) but when I terminate the while loop (stop button), the motor will continue to run as the switch is still on. I want the motor to turn off once I press the stop button. Currently I must turn off the motor before I terminate the loop.
I have attached a photo and the VI.
Thanks in advance.
Solved! Go to Solution.
01-27-2020 06:56 AM
Simply add a sequentialized digital output with FALSE constant after the loop.
Other solution is to set the output state in AND with the NOT(STOP) button.
01-27-2020 07:03 AM
Put a separate "Turn On Motor" Express VI on the output side of the While Loop, bring the wire from the Stop switch through the output side of the While, connect it to a Not, and wire it to "Turn On Motor" (because of the Not, it will turn the motor Off).
Bob Schor