For a timed action you can put the code in Periodic Tasks.vi.
With a state-machine you could put code in Teleop.vi
There are lots of different ways to do something like this.
Here's an example that could be used in Teleop.vi
You'd add your Set Motor in the True case, and add another case outside to the right that used
Time to do it? as a flag to stop the motor.
This example for Periodic Tasks.vi would just need the two sequence frames that do the Motor sets to start, then stop the motor.
Ignore the Servo stuff. They were demonstrating extra actions.
