on which channel in the Crio does the switch work ?!! ( analog breakout) ???
Any of the DIO pins on the digital sidecar. You set the channel/pin for the switch when you create the compressor object.
The pressure switch goes to one of the digital inputs on the sidecar. We usually put it to DIO #1 but it doesn;t matter as long as you program it correctly in the cRIO.
I didn’t mean that !! I ment which two cables of the PWM should we configure it to the pressure switch ??
Ground (black) and Signal (white) are wired to the pressure switch.
The rest of the PWM goes to the digital sidecar, and it is read as a digital input. (And whatever you use to control the compressor should take an extra number for the switch. Well, at least how that’s how the Java library handles it.)