|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: need Solenoid help
BTW, forgot to mention one more thing: you need to create a compressor object too. The compressor power should be hooked to a Spike relay and the pressure switch should be hooked to a digital input channel.
Code:
#define PRESSURE_SWITCH_CHANNEL 1
#define RELAY_COMPRESSOR_POWER 1
private:
Compression *m_compressor;
...
// In some constructor
m_compressor = new Compressor(PRESSURE_SWITCH_CHANNEL, RELAY_COMPRESSOR_POWER);
m_compressor->Start();
Last edited by mikets : 24-02-2010 at 13:42. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with Festo Solenoid and Labview | Team2883 | General Forum | 3 | 17-02-2010 12:56 |
| Need help with SMC solenoid valves | Ed Law | Pneumatics | 6 | 04-02-2010 06:43 |
| Solenoid Help | aznbadboixx | Pneumatics | 0 | 15-02-2008 15:53 |
| Solenoid Help | Brigander | Programming | 2 | 14-02-2007 17:13 |
| Need instructions for SMC Single/Double solenoid | WHou | Pneumatics | 5 | 29-01-2005 08:17 |