Double Solenoid trouble

I am having trouble with my current solenoid code, when i press button one on joystick three it is supposed to activate, but it currently wont, also checked the voltage output with a meter and it wasn’t changing from 12 volts.

any idea what the issue with the code is?

Do you have the pneumatics breakout wired and supplied with 12v? Do you see an LED lit on it?
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Solenoid%20Breakout.pdf

When you activate your joystick button, does one of the lights on the NI 9472 change state?

If not, I’d look for errors on your dashboard, especially anything about an unknown device ref.

I might also try setting your solenoid on with a true constant, verify that works as expected, if it doesn’t, you’ve got something wrong with the solenoid code, or the hardware of the pneumatics pieces.

You can always place a breakpoint and probe in the teleop code, and see what’s what, are there any errors on the error outs, do you see the joystick button changing states as expected.

If you are using a double selenoid in begin.vi, try using two singles instead. Then call them out individualy in teleop.vi.

Is it a 24v solenoid? KOP had/has those. Andymark sells a 12v version. Mixing them without realizing it is vexatious. :frowning: