Go to Post And to think, a lot of students are planning parties and celebrations on their last day of school and you guys are recycling trash. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2012, 20:38
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Programming Spike Relay

I tried programming the spike relay to turn an am-0914 motor today and it doesn't work. The motor doesn't turn.

I'm programming it so that when the trigger on the joystick is held down, the motor spins.

The relay is connected to Relay1 on the Digital Sidecar. The light on the relay is orange. When the trigger is held down, the light on the relay is still orange, though in labview front panel, I can see the SetRelay front panel RelayValue is set to forward. The front panel looks like this when the trigger is held down:

Click image for larger version

Name:	save.png
Views:	134
Size:	281.5 KB
ID:	12001

Click image for larger version

Name:	Untitled.png
Views:	89
Size:	243.8 KB
ID:	12002



Am I programming something wrong?


PHOTOS BELOW!!!!:

http://coldwartimeline.tk/DSC00106.JPG
http://coldwartimeline.tk/DSC00104.JPG


There is one more picture with the relay but the guy who's supposed to send them hasn't.

Update
I Just saw the photos and noticed that thing thing is connected backwards. That's because we tried connecting that wire to every relay port in every direction. I also just noticed the light next to the relay. That's kind of comforting. Maybe the Spike is broken?

Last edited by jeremy5561 : 19-02-2012 at 21:23.
  #2   Spotlight this post!  
Unread 19-02-2012, 21:22
chi-town-biker chi-town-biker is offline
Registered User
FRC #3135 (Robotic Colonels)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Chicago
Posts: 46
chi-town-biker is an unknown quantity at this point
Re: Programming Spike Relay

Team 358 has an excellent example of programming a spike in Labview. See http://team358.org/files/programming...2009-/LabVIEW/ I've attached the relevant section. (It's faster to copy theirs than write my own example.)
Attached Thumbnails
Click image for larger version

Name:	relay per 358.png
Views:	120
Size:	88.3 KB
ID:	12004  
  #3   Spotlight this post!  
Unread 19-02-2012, 22:25
jeremy5561 jeremy5561 is offline
Registered User
FRC #0919
 
Join Date: Jan 2012
Location: Canada
Posts: 26
jeremy5561 is an unknown quantity at this point
Re: Programming Spike Relay

I'm pretty sure thats how I programmed our relay. I used a case instead of a select and it has forward when true and off when false. I'm beginning to think its a spike problem rather than a programming problem. I'll look into it tomorrow. If anyone sees anything wrong let me know.

I will try copying that code tomorrow though I doubt it would make a difference.
  #4   Spotlight this post!  
Unread 19-02-2012, 23:04
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,113
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: Programming Spike Relay

Quote:
Originally Posted by jeremy5561 View Post
Update
I Just saw the photos and noticed that thing thing is connected backwards. That's because we tried connecting that wire to every relay port in every direction. I also just noticed the light next to the relay. That's kind of comforting. Maybe the Spike is broken?
I was going to point out both the lit green LED and the apparently backwards connector, but it looks like I don't have to.
Closed Thread


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 00:45.

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