Programming Compressor C++

Hello, I am having problems trying to get the compressor to work. I am using windriver, the compressor is connected to relay 2 and the pressure switch is connected to digital i/o 1. Can you please help us? Thank you. Any help would be greatly appreciated!

All you need to do is instantiate a compressor object with the pressure switch and compressor ports, then start it. For example, you might do:

Compressor *compressor;
compressor = new Compressor(1,2);
compressor->Start();

that doesnt seem to work… do you know what might be the problem?