Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   timing in program (http://www.chiefdelphi.com/forums/showthread.php?t=94115)

Ian McShane 28-03-2011 18:37

timing in program
 
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

Re: timing in program
 
in auto or telop?

Ian McShane 28-03-2011 20:21

Re: timing in program
 
auto

Alan Anderson 28-03-2011 21:38

Re: timing in program
 
1 Attachment(s)
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

Re: timing in program
 
thank you.


All times are GMT -5. The time now is 09:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi