Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Have motor run for X amount of time (http://www.chiefdelphi.com/forums/showthread.php?t=113969)

Dillonboy8 19-02-2013 16:17

Have motor run for X amount of time
 
I know, there is a similar thread to this, but my situation is different, so bear with me....

I am trying to get my team's conveyer belt (run by a motor) to go forward for X amount of time, then after it does that maybe wait a second and then go backwards. Any idea on how to do this? Me and the other programmer are completely lost :/

Thanks!

Mark McLeod 19-02-2013 16:27

Re: Have motor run for X amount of time
 
This is a timed sequence of actions, just ignore the servo examples.
Your sequence would be
  1. set motor to 1,
  2. wait x milliseconds,
  3. set motor to zero,
  4. wait 1000 ms,
  5. set motor to -1,
  6. wait X miliseconds,
  7. set motor to 0.
This drops into Periodic Tasks.vi NOT Teleop.vi


Omar 19-02-2013 16:31

Re: Have motor run for X amount of time
 
1 Attachment(s)
Attachment 14117Put this inside your Periodic

You can add the Names for the joystick and the motor used in your begin VI

Edit: I missed the stop and wait a second step before going back.


All times are GMT -5. The time now is 12:06.

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