|
Re: Timed Button
I'd suggest using a periodic loop for this. In the loop, check the button and wire to a switch. In the True case of the switch, turn on the motor, delay for the right amount of time, and set the motor speed to zero. Then return to scanning the button. To sequence the motor on/delay/motor off, you can use a dataflow dependency or a sequence structure.
As with the other periodic loop, put a delay in it to read the joystick at 50Hz or so.
Greg McKaskle
|