Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming Spike Relay (http://www.chiefdelphi.com/forums/showthread.php?t=103323)

jeremy5561 19-02-2012 20:38

Programming Spike Relay
 
2 Attachment(s)
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:

Attachment 12001

Attachment 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?

chi-town-biker 19-02-2012 21:22

Re: Programming Spike Relay
 
1 Attachment(s)
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.)

jeremy5561 19-02-2012 22:25

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.

Alan Anderson 19-02-2012 23:04

Re: Programming Spike Relay
 
Quote:

Originally Posted by jeremy5561 (Post 1130453)
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.


All times are GMT -5. The time now is 00:45.

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