View Full Version : Programming Compressor C++
programmr
22-02-2010, 15:08
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!
BenThompson
22-02-2010, 15:32
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();
programmr
22-02-2010, 15:54
that doesnt seem to work... do you know what might be the problem?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.