Start with getting the compressor working correctly.
It sounds like you already have this, so just verify.
There is a bit of code that goes in Begin.vi and another in Periodic Tasks,vi as shown below.
You get the blue "DIO 1" by hovering your cursor over the input node on the left of the Compressor Open vi, right-click to get the node menu and choose
Create -> Constant.
The compressor vi's are all under:
WPI Robotics Library->Actuators->Compressor
Then check your wiring.
- Pressure switch wired to the outer two wires on a PWM cable. The center cable is just cut back to keep it out of the way.
- The Pressure Switch PWM cable then gets plugged into DIO 1 on the Digital Sidecar.
- The Spike controlling the compressor has it's PWM cable running to Relay 1 on the Digital Sidecar. Orientation of the cable matters, so be sure it's correct.
When you enable, the compressor spike should go green, as well as the matching Relay LED on the Digital Sidecar.
The compressor will only shut off if pressure reaches 115psi.
If pressure stops climbing at 60 psi or so, then your regulator is probably backwards.