![]() |
Weird behavior in our code
We are having problems getting our pressure switch for the compressor working. Here's what's happening:
- When the robot is disabled and the code is deployed, I can see the pressure switch state by an indicator in Periodic Tasks.vi. - When the robot is enabled, the state goes false, not changing no matter what the pressure switch reads. It's like the robot just does not want to read the inputs we have in DIO on the sidecar while the robot is enabled. |
Re: Weird behavior in our code
Can you post a picture of the code you are running? This can help us better identify the problem!
|
Re: Weird behavior in our code
False on a DIO means the signal is being pulled low. A properly wired pressure switch will do that when the pressure is too low and it is calling for the compressor to run.
What do you see the indicator doing when you completely disconnect the pressure switch? If it still says the switch state is false, there's something very wrong. Either the hardware (or the cRIO image) is faulty, or your code isn't reading the input properly. |
Re: Weird behavior in our code
If you remove the DB-37 cable from the digital sidecar, are all three power LEDs brightly lit?
|
Re: Weird behavior in our code
Quote:
Quote:
Quote:
This is our 3rd Digital Sidecar. I highly doubt all 3 are bad. The new one we got in the KOP was bad because 6V wouldn't come on. We know we are supplying 6V because it showed up on 2 other Sidecars and we checked it with a multimeter. |
Re: Weird behavior in our code
Quote:
Once the sidecar is getting proper 12v power from the battery all three power LEDs will be brightly lit. example - top DSC is with no 12v power, bottom is with 12v power It's not going to work until you can get 12v into it. |
Re: Weird behavior in our code
Quote:
Looks like our electrical team wired it up in the wrong spot. It should come out of one of the 30A MAX ports with a 20A breaker, correct? |
Re: Weird behavior in our code
1 Attachment(s)
Quote:
USFIRST and ScreenstepsLive web pages have all the info you need to wire the bot properly. USFIRST.ORG "Power Connectivity Diagram" http://www.usfirst.org/sites/default...icalLayout.pdf DSC Excerpt from above: http://www.chiefdelphi.com/forums/at...7&d=1389920308 WPI ScreenstepsLive "Wiring the 2014 FRC Control System" http://wpilib.screenstepslive.com/s/...control-system DSC excerpt from above: http://www.chiefdelphi.com/forums/at...d=13914640 67 USFIRST.ORG "Data Connectivity Diagram" http://www.usfirst.org/sites/default...gnalLayout.pdf |
Re: Weird behavior in our code
Quote:
You can see that on Ether's first DSC link. |
Re: Weird behavior in our code
Please let us know if that fixes the issue.
|
Re: Weird behavior in our code
Quote:
|
| All times are GMT -5. The time now is 09:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi