Pneumatic#
Introduction#
The VEX EXP Brain can control the CTE Pneumatic system using blocks from the Pneumatics category. These blocks allow the Brain to control the pneumatic pump and extend or retract pneumatic cylinders.
Below is a list of all blocks:
set pneumatic cylinder — Extends or retracts a cylinder.
set pneumatic pump — Turns the pneumatic pump on or off.
set pneumatic cylinder#
The set pneumatic cylinder stack block extends or retracts a pneumatic cylinder.
set [Pneumatic1 v] [cylinder1 v] to [extend v]
Parameter |
Description |
|---|---|
pneumatics |
Which pneumatics system to use, configured in the Devices window. |
cylinder |
Which cylinder to extend or retract, configured in the Devices window. |
state |
The state of the cylinder to set: extend or retract. |
Example
when started
[Extend cylinder 1 at the start of the project.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
[Retract cylinder 1 after 2 seconds.]
wait (2) seconds
set [Pneumatic1 v] [cylinder1 v] to [retract v]
set pneumatic pump#
The set pneumatic pump stack block turns the pneumatic pump on or off.
set [Pneumatic1 v] pump to [on v]
Parameter |
Description |
|---|---|
pneumatics |
Which pneumatics system to use, configured in the Devices window. |
state |
The state of the pneumatic pump to set: on or off. |
Example
when started
[Turn the pneumatic pump off at the start of the project.]
set [Pneumatic1 v] pump to [off v]
[Wait 2 seconds before turning the pneumatic pump on]
wait (2) seconds
set [Pneumatic1 v] pump to [on v]