Pneumatics help

I am the programmer for my team and we are using a single solenoid and a single cylinder. I have everything programmed for the robot except for the pneumatics, we have no coding for the pneumatics. I have no idea to program it and I need some help. We would really appreciate if someone could help.

Thank you

Edit: We are actually using a Double Solenoid, not a single solenoid

If I knew what type of solenoid you were using and what programming language, I might be able to help.

Otherwise, all I’m going to do is point you at the documentation, which of course you’ve already seen*.

*I’m sure you tried at least one google search before asking.

What language?

Programming them is pretty simple in all the languages. The link posted by MuskieProgramme covers C++ and Java. For Labview, look at these:
Controlling a solenoid with a joystick button
Controlling the compressor

If none of those links let you get it done, please don’t hesitate to message me directly! I’ll be inspecting at your event, and can arrange for help to be in your pit first thing when pits open to get this working. With the right help on hand, we can get it working for you very quickly!

i am doing the same here and need help with the code…
Java command based… i have my subsytem code done… when i enable, i expect the compressor to turn on and build the pressure until it reach the pressure switch setting… right now it does not start, we measure the voltage out of the PCM and get 0V so i am ssuming that my code is wrong…

Please read section 4.1. “Why isn’t the Compressor turning on?” in the PCM user’s guide. Follow the steps in order and you will be up and running.

Between that and the wiz kid at Romeo we got it going !!! Thank you !

I have the pneumatics working but now I just need to get it so that I can extend and retract the cylinder with a joystick button.

Again we require your programming language to provide assistance