Go to Post I shouldn't be doing a happy dance or anything, should I? - Qbranch [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2013, 16:17
Dillonboy8 Dillonboy8 is offline
Registered User
AKA: Dillon Knight
FRC #3603 (Reed City Cyber Coyotes)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Reed City, Michigan
Posts: 21
Dillonboy8 is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2013, 16:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2013 at 16:30.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2013, 16:31
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Have motor run for X amount of time

Click image for larger version

Name:	conveyer belt.png
Views:	46
Size:	32.1 KB
ID:	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.
__________________
Omar
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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