View Single Post
  #1   Spotlight this post!  
Unread 08-02-2014, 16:43
computronix computronix is offline
Registered User
FRC #4638
 
Join Date: Jan 2014
Location: Maryland
Posts: 1
computronix is an unknown quantity at this point
Smile Cannot turn on compressor programatically via Spike Relay

Hey guys,

We're having a lot of trouble getting the air compressor to turn on and regulate itself via a Spike Relay. Here's our setup:
  1. We have the DSC plugged into the cRIO and all three power lights are brightly lit
  2. The Spike Relay is plugged into the DSC on relay port 1 and the light is amber
  3. The pressure switch is also plugged into the DSC on DIO port 1
  4. The light on the Spike Relay does NOT turn green when it should be enabled, and the light next to the relay port on the DSC does NOT turn green when it should

Here is a link to our code, if you'd like to take a look. The compressor code is in the UpdatePressure class in the launcher package.

Any help would be appreciated. We've been working on this for two days with no luck. All we know is that the problem is between the DSC and the Spike Relay, but we can't figure out why.