View Single Post
  #8   Spotlight this post!  
Unread 16-02-2010, 22:07
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Compressor won't start

Quote:
Originally Posted by kennypu View Post
oh woops sorry about that, I tried both (1,1 and 4,2 because it came from an example), but neither worked. So the pressure switch isn't required to get the compressor running?

The software turns the compressor on even if the pressure switch is not wired. It's one less thing to go wrong when you are first testing, but you must use the pressure switch after things are working. Leave the selected digital port unconnected for now, just to be sure it's not preventing the compressor from turning on. As you suggested, I would try using the Relay class next. Something like this, untested:

Code:
  Relay *m_relay_1;

...

  m_relay_1 = new Relay(1);
  m_relay_1->SetDirection(Relay::kForwardOnly);
  m_relay_1->Set(Relay::kOn);
Reply With Quote