Hi,
The easiest way is to make a shift register. Wire a boolean TRUE to it, at
the outside of the while.
If you have a button to trigger the start, AND it with the value from the
shift register.
In the case that starts the motor (the TRUE case), wire a FALSE to the right
end of the shift register. In the FALSE state of the case, wire the input
value to the output value.
Regards,
Wiebe.
"ruedigerkramer"
wrote in message
news:5065000000080000002A690000-1031838699000@exchange.ni.com...
> I want to switch a motor on or off within a while loop. When I put the
> switch command into the loop the command will be sent to the motor as
> often as the loop is running. But I need it only one time. Can
> somebody help me? Thanks