![]() |
Sidecar relay port issue
I've run into an issue with a digital sidecar lately. I seldom use relays but this year we have an LED on the back of our robot that tells our drivers when we're ready to shoot. We're controlling it with a spike relay. The issue is that the relay ports are completely unresponsive.
Our team uses java to program our robot, and I've tried every possible way to turn on a relay in java. But the only thing that changes the state of the relay is disabling/enabling the robot. The strange thing is that about half the green and red LEDs that indicate the state of the relay ports stay on when the robot is enabled. I've tried a different sidecar only to get the exact same light pattern. I've look all over Chief Delphi and no one else has this issue. I also look at the sidecar documentation and I don't think this is supposed to happen. If you have any ideas on how to fix this problem please post. Thanks |
Re: Sidecar relay port issue
How is your DB-37 pin cable?
Do you have another you could swap in to check if the cable is bad? The common cause of the Relay Xmas Tree effect this year when the robot gets Enabled is a reversed DB-37 cable. Test your cable by plugging it into itself. If it forms a mobius strip, then it's reversed. If it forms a simple loop, then it's good. |
Re: Sidecar relay port issue
Thanks, I'll try that tomorrow.
|
Re: Sidecar relay port issue
I second that. We had the same problem (using LabVIEW) and it was solved only by using a KNOWN GOOD flat cable. I don't know why the 2 round cables we tried (they checked out good) didn't work, but . . .
Re flat cables, either purchase one preassembled or have it assembled using the proper tooling (using a vise doesn't cut it). |
Re: Sidecar relay port issue
Quote:
There are vices available (and we have some at work here) that are completely flat, and allow fine adjustment. Those are the type you want to use if you're assembling a cable! You need to provide a constant pressure along the entire length/width of the connector, and have fine enough control over how much its tightened to prevent you from snapping off the locking tabs on the sides. |
Re: Sidecar relay port issue
Quote:
|
Re: Sidecar relay port issue
I'm mechanical, but check the Relay Class. I think you have to set the direction of the relay ex."setDirection(kForward)" then call the relay to trigger "set(kOn)" We had trouble like this too.
|
Re: Sidecar relay port issue
Thanks!
Quote:
|
| All times are GMT -5. The time now is 11:07. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi