Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming Compressor C++ (http://www.chiefdelphi.com/forums/showthread.php?t=83391)

programmr 22-02-2010 15:08

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!

BenThompson 22-02-2010 15:32

Re: Programming Compressor C++
 
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

Re: Programming Compressor C++
 
that doesnt seem to work... do you know what might be the problem?


All times are GMT -5. The time now is 03:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi