@SeagulPez1 Thanks for asking this question. Normally the pneumatic solenoids are just programmed as a digital output pin. Depending on whether you have a single or double-acting piston you might want to program the buttons on your controller to do different things. Below is a model and picture of the three most common ones we have heard about (Momentary, Latching, and Triggered). Hope you find these useful and feel free to reply with more questions, we are happy to help.
PnemauticSolenoids.zip (46.1 KB)
MATLAB and Simulink Robotics Arena