View Single Post
  #7   Spotlight this post!  
Unread 15-02-2010, 09:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Buttons on Joystick

When your code is working correctly, you should see two of the LEDs on the cRIO module in slot 8 working. One should light while the other is off and vice versa. You probably need to set the initial state in Begin.vi as well, but they default to Off, so they'll begin as both LEDs off.

If those lights are working, then move on to checking the wiring.
One solenoid side of your double is wired to Solenoid Breakout pin(s) 1 and the other side to pin(s) 2.


The compressor probably isn't messing up the solenoids.
Normally, in Begin.vi, we do an Open Compressor, then a Start Compressor, then the Refnum. The Start is actually a periodic task all it's own and continues to run the entire time your code is active.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote