View Single Post
  #1   Spotlight this post!  
Unread 06-02-2014, 16:52
anthonygraff24 anthonygraff24 is offline
Registered User
FRC #2872 (CyberCats)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Long Island
Posts: 38
anthonygraff24 is an unknown quantity at this point
Still Having Pneumatics Problems

I am using the FESTO VAVE-L1-1VH3-LP double solenoid. We have the solenoid wired so that the 24v port on the power distribution board connects to the wago on the crio breakout for pneumatics (Module NI9472 with Red Pneumatics Breakout). The solenoid wires are then plugged into double prong wires, ports 1 and 2 on the breakout. Red going to red and black going to black for each pair. When we use our joystick to actuate the piston we get a orange light for each button. We also get the green lights on the cRIO module to light up. The piston does not do anything. For reference, here is our code related to the Solenoid:

DoubleSolenoid piston = new DoubleSolenoid(1,2);
//Constructor

while(rightStick.getRawButton(4))
piston.set(DoubleSolenoid.Value.kForward);
while(rightStick.getRawButton(5))
piston.set(DoubleSolenoid.Value.kReverse);
while(!rightStick.getRawButton(4)&&!rightStick.get RawButton(5))
piston.set(DoubleSolenoid.Value.kOff);

Any and all help would be greatly appreciated!!