Log in

View Full Version : timing in program


Ian McShane
28-03-2011, 18:37
How do you make something happen after a certain amount of time for a certain amount of time. Say make a motor move for after 5 seconds for 5 seconds. Can you send me a pic? I am just trying to figure out how to use the timing vi's.

bladetech932
28-03-2011, 20:16
in auto or telop?

Ian McShane
28-03-2011, 20:21
auto

Alan Anderson
28-03-2011, 21:38
Here's one way to do what you asked. The first frame of the flat sequence will wait for 5000 milliseconds before completing and letting the second frame begin. The second frame contains a while loop that will terminate after 101 iterations, with each iteration setting the motor speed and waiting for 50 milliseconds. The final frame of the sequence turns the motor off.

Using a flat sequence is overkill for something this simple, but it provides a framework for adding more steps if desired.

Ian McShane
29-03-2011, 17:49
thank you.