|
Re: pneumatics help
Don't spend any more time on the "separate vi" one. It's not going to be useful in your actual robot code.
What kind of solenoid valves are you using?
You say "Solenoid 1" works, but "Solenoid 2" and "Solenoid 3" do not? The code seems fine to me. The only thing special about 2 and 3 in your Teleop vi is that they are controlled by the second joystick. Is that joystick configured properly in the Driver Station's Setup tab? Click a button on it and verify that the second line in the joystick list reacts.
Do you see the appropriate LEDs on the NI 9472 module lighting up when you press a joystick button?
Is there something wired differently on the two solenoid valves that don't work? If you swap the connectors between outputs 4 and 5 on the Solenoid Breakout, does the problem follow the output pins, or does it stay with the physical solenoid valve?
Where does the power input to the Solenoid Breakout come from? If it's wired to a 12v branch from the Power Distribution Board, do all of your solenoid valves have 12v coils? It's possible that your first one is a 12v solenoid, but the other two are 24v solenoids.
|