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.
It is the example compressor code. I’m opening the Compressor in DIO 1 and Relay 1, and setting the RefNum to Compressor. In Periodic Tasks, I am doing a RefNum Get (Compressor) and feeding that into the Compressor Control Loop.
I’ll check that today. I’ll get back to you later.
BATT doesn’t come on. 5V and 6V is on, though.
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.
So you have the Sidecar wired to the power distribution board at a pair of the 20/30a red/black wago connectors with a 20a breaker and it still isn’t receiving power (no BATT LED)?
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.