There is a method in the WPLIB? for the compressor. It should run in one of the periodic sections of code. The pressure switch is one of the digital inputs which the method reads & turns on & off the spike on one of the digital outputs. I believe you pass the IO you are using. Sorry for vagueness, I have minions that do actual programing.
