Do my Solenoid vi's look alright?

Hello, I am trying to get a festo double solenoid to work. However… it isn’t. Does my code look alright? If so, it might be a wiring problem. I want the solenoid to push out and retract when I push button 2. Thanks!

Begin - Tele - Finish

Allons-y





I’m bothered by the tiny red coercion dot on the Solenoid Set.
That means it’s not the proper type that’s expected when it looks like it should be.

First though I’d check the Solenoid Module LEDs to see if the code is changing them. Look on the module and operate the button (DS Enabled and all) to see if the LEDs come on at all and change when you push the button.
Make sure Joystick 1 (where the button is) is in the first slot on the Driver Station Setup tab. Pushing the button will make it turn blue.
You should see the first two LEDs alternating being on.

If you do then your code is alright, and it’s a wiring issue.
If those status LEDs don’t come on then it’s a code issue.

There are no lights running on the solenoid itself. The festo does work when we use it manually.

Basic question here. Is the Solenoid Bumper powered? If so, is it the correct voltage for the solenoids you are using?

For the code problem…

  • It looks like the “Solenoid” name might be different between Begin.vi and Teleop.vi. It looks like there might be a space before “S” when it’s used in Teleop.vi. Delete the name in Teleop.vi, then copy and paste the name from Begin.vi and wire it in.
    *]I’d fix the coercion dot, too. Remove the wire into Solenoid Set, as well as, the Forward/Reverse constants. Then create a new constant from the Solenoid Set (hover over node right-click and Create->Constant). Copy and paste the new constant to replace the old ones and wire it all up again.
    Check your Driver Station Diagnostic messages to see if it’s complaining about a Solenoid.

Okay I fixed my vi’s. This code should work with a double solenoid fest valve right? That is assuming the wiring is correct.