Go to Post At least try to make sure other teams are aware of you. Don't be obnoxious, but don't be a wall flower either. - Joe Johnson [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 31-01-2015, 21:47
Team3220's Avatar
Team3220 Team3220 is offline
Mechanic of Mayhem
FRC #3220 (Mechanics of Mayhem)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Washington
Posts: 21
Team3220 is an unknown quantity at this point
Relay Problems

We are having some trouble coding some relays. We want to use window motors attached to spike relays to raise and lower an arm (kinda like the front of a tractor) to lift the totes for this year"s game. We need help coding the relays and motors, and assigning buttons to stuff. Do you need to use some comparison code or something? We are total rookies, and some help or links to other forum posts with the same issue would be greatly appreciated. I can post pictures of stuff we have tried / are trying, if you guys think it will help.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 22:00
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,248
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: Relay Problems

Can you tell us more what how you expect this to be controlled?

Will you have two positions (up and down)? three? Or do you want to be able to stop anywhere in the path?

Do you want a button that drives it up and one that drives it down? Do you want a button that sends it to the top most position and one for the bottom position?

How will you know when it is at the end of the movement? are the limit switches?
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 22:23
Team3220's Avatar
Team3220 Team3220 is offline
Mechanic of Mayhem
FRC #3220 (Mechanics of Mayhem)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Washington
Posts: 21
Team3220 is an unknown quantity at this point
Re: Relay Problems

We're trying to keep it simple- hold a button to raise, hold a button to lower. I guess that would be 2 positions. We want it to stop whenever the driver stops pressing the button. The arm is powered by a winch/pulley type of deal, so as of right now it's up to our driver to not raise the arm too high and bog down the motor (unless we can figure out a way to limit the motor's rotation. We plan on doing stuff like that once we have the main robot working how we like it.)

Last edited by Team3220 : 31-01-2015 at 22:28.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2015, 22:13
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Relay Problems

What language? Labview, C++, or java?
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2015, 22:54
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,570
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Relay Problems

Quote:
Originally Posted by SuperBK View Post
What language? Labview, C++, or java?
I'd presume LabView, since it's on the LabView forum.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2015, 23:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Relay Problems

This thread probably has what you want. See post #6 for sample code.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2015, 14:56
Team3220's Avatar
Team3220 Team3220 is offline
Mechanic of Mayhem
FRC #3220 (Mechanics of Mayhem)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Washington
Posts: 21
Team3220 is an unknown quantity at this point
Re: Relay Problems

Here's our code- it's giving us an error in TeleOp saying that the Relay DevRef needs to be wired. Also, we fixed the Set/Get issue
Attached Thumbnails
Click image for larger version

Name:	Relay Code 2.PNG
Views:	10
Size:	6.8 KB
ID:	18183  

Last edited by Team3220 : 06-02-2015 at 15:12.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2015, 15:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Relay Problems

Quote:
Originally Posted by Team3220 View Post
Here's our code- it's giving us an error in TeleOp saying that the Relay DevRef needs to be wired.
You see your Relay RefNum Get? Yeah, what you have there is actually a Relay RefNum Set. Replace it with the right one and that error will be gone.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2015, 17:54
Team3220's Avatar
Team3220 Team3220 is offline
Mechanic of Mayhem
FRC #3220 (Mechanics of Mayhem)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Washington
Posts: 21
Team3220 is an unknown quantity at this point
Re: Relay Problems

We got it mostly fixed. Still an error on the second comparison. I'll post a picture when I get home.
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 04:00.

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