Compressor Programming

We are having an issue getting our compressor to work with the pressure switch to our digital side car. We have an 8 slot cRIO with the 9403 in slot 2 connected to our digital side car by the DB37 cable. Our robot drives and relays operate so we are relatively sure the digital side car is functional. Our pressure switch is wired to SIG and negative on digital IO 1 on the digital side car. We’ve placed the compressor control loop in the Periodic Tasks.vi and in the begin .vi. We really could use an example of a successful compressor program. Thanks.

Team 2883

There should be an example showing both correct code and correct wiring. Look in the FRC examples. :]

There has to be an easier way to do that. I made a successful compressor program with the last version of labview, but I haven’t been able to do that with labview 2011.

Compressor’s a little bit different to program this year. Well actually, the only noticeable difference is that you must include the Control Loop in periodic tasks. This VI must be outside of a loop, it has loops inside it.

Im pretty sure I have the programming right. Can someone explain how I should have it wired? Right now I have Digital Module 1(slot 2 of our 8 slot cRIO) connected to the digital side car. Relay 1 on the side car is connected to the spike relay. The spike relay is connected to the compressor and the power distribution board. DIO 1 on the side car is connected to the pressure switch which is connected to the compressor. Please let me know if any of this is wrong

Your wiring sounds correct.

Do the Relay LEDs on the Digital Sidecar (right in front of the Relay pins) come on at all?

You can test the DIO 1 input by substituting a regular switch on the sig/gnd pins. or just jumping the sig to gnd.
The Relay LEDs will be off or green depending on how the switch is thrown if the code is operating properly.
You can debug from there.