|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: spike relay help
Hello, I am the programmer for the 2600 team and I have now tried everything that I can think of. First off some background info we have three spike relays two for motors and one for the compressor. When I enable the robot with my project(see attached) deployed and running the relays do not respond at all. I have tried sending user data of both the status of one relay and any errors to the driver station and what I find weird is that it didn't even show "off" never mind forward or reverse. I have checked and double checked the wiring and finally tried formatting the cRIO and running the relay example provided with lab view all to no avail. To answer your question, the light is constantly just on, the amber yellow green color. Thanks in advance for everyone's time and help.
PJ |
|
#2
|
||||
|
||||
|
Re: spike relay help
Did you check everything that Mark suggested in post#4?
|
|
#3
|
|||
|
|||
|
Re: spike relay help
Thanks for pointing that out, re-reading it I noticed I read the dio relay leds wrong and just thought it said for the leds on the spike. I hadn't thought of it but they don't light up at all but im not sure what could account for that especially after trying the example that came with labview.
|
|
#4
|
|||
|
|||
|
Re: spike relay help
I hadn't checked the cable and we are using the one that came with the kit this year.
|
|
#5
|
|||
|
|||
|
Re: spike relay help
And I didn't notice the ps sorry, what about the code isn't functional, I started just changing a lot of things rushing around so im not completely sure what I did but I do have older versions saved. What's wrong with it though? Thanks again for all the help and quick replies.
|
|
#6
|
|||||
|
|||||
|
Re: spike relay help
Nothing serious.
You were partway through adding in your messages to be written to the Driver Station in Teleop, so Teleop is broken. It has two tunnels that are undefined (unwired). Your code looks like the Relay parts should work fine. You have a bug in Begin that will prevent your code from running though. The Compressor Control Loop must be removed. It's already in Periodic Tasks where it should be. The Compressor Control Loop is never ending, so placed in Begin it never lets Begin finish and move on to Teleop. Last edited by Mark McLeod : 16-02-2012 at 15:35. |
|
#7
|
|||
|
|||
|
Re: spike relay help
Yes, I had been working on the message before and after the last trial but when it was connected, the messages box was simply blank. What was the problem with the digital sidecar connector, I hadn't read anything on that? I added the control loop in after trying it without it, just to see if it would change anything.
|
|
#8
|
|||||
|
|||||
|
Re: spike relay help
Here's FIRST's description of the cable problem: http://www.usfirst.org/sites/default...structions.pdf
It's linked from the KOP Control System page. |
|
#9
|
|||
|
|||
|
Re: spike relay help
Thanks for all your help ill be in tomorrow working on so hopefully this is the solution. Thanks again.
|
|
#10
|
|||||
|
|||||
|
Re: spike relay help
P.S.
There's more left over wrongness that should be dealt with. I don't know everything that may be hidden, but: - Robot Main needs Begin tied in to the While loop. You don't want Teleop called before the Begin finishes Opening everything. - Begin has a Driver Station Start COM that doesn't belong there. It's already in Robot Main where it belongs. |
|
#11
|
|||||
|
|||||
|
Re: spike relay help
The Spike light just means it's getting 12v power.
On the Digital Sidecar are 8 paired sets of red and green LEDs, one pair for each of the Relay outputs. It's that trough in front of the Relay signal pin connections. What are they doing, if anything? Does your 37-pin cable that connects to the Digital Sidecar form a simple loop or does it form a mobius strip when plugged into itself? Since, so many of those Kit cables were wired incorrectly this year that's probably something you might have already checked. P.S. The code you posted isn't functional. Did you make an untested change after your test and post that? Last edited by Mark McLeod : 16-02-2012 at 15:19. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|