Quote:
Originally Posted by midway78224
The light on the spike goes green then orange green then orange all the way up to 120 psi. Same thing on digital sidecar
|
Quote:
Originally Posted by midway78224
We also done the short out test to the pressure switch with a screwdriver and it works but does the same thing as if it was shorted out.
|
The sidecar light says the code is turning the compressor on and off. It is not a problem between the cRio and compressor.
The shorted switch test shows that the switch is not "bouncing" as suggested by Vikingtech2054. Verify wiring is OK by shorting the pins at the Digital Sidecar. If you get the same behavior, the problem is not between the switch and the digital sidecar.
Check (replace) the 37-pin cable between sidecar and cRio. If this is OK, then the issue must be in the cRio
This would mean, 99.999%, that it is your code that is turning the compressor on and off until it reaches 120, which then shuts it off properly.
Try the sample code Jon Stratis suggested, or write your own, but your code is the issue.
It is much less than 0.001% chance, but the cRio or digital module can be bad, but this is extraordinarily rare.
That covers 100% of the possible failure scenarios.