View Single Post
  #4   Spotlight this post!  
Unread 14-03-2014, 15:36
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Spike relay only works in reverse

Quote:
Originally Posted by chip1264 View Post
We have a window motor connected to a spike relay and our Labview code is able to manipulate it in both directions but when we flash the cRio and load our Java code, the relay only runs in reverse.

We have tried multiple scenarios trying to track down the issue and these have included: changing the constructor (new relay(1); new relay(1,1); new relay(1,1,kBoth), we have changed the code and replaced the kReverse, which works, to kForward. We have even verified that kForward has a value of 2 by outputing the value to the dashboard.

When we watch the relay, reverse does turn the LED red but forward never changes to green.

Team 3224
Lion Hit Squad
Please post code of your constructor, and code where you command the relay to change direction.

Have you tried swapping out the relay and the results are the same?

Are you running the test with the motor connected or disconnected? I would remove the motor from the relay and just verify voltage output from the relay terminals for now using a volt meter.

Regards,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
Reply With Quote