pneumatics doubt

hi everyone
i’ve got a doubt with putting the compressor in periodic task, because as you know the limit is 120psi , does the compressor stops when it arrives to 120psi?? or do we need to program that? help please

The compressor control loop, what you place in periodic tasks (there already should be one there in a disabled structure), has an internal loop so it will run and check the state of the pressure switch every X seconds.

X = 1 second

Note that there is a pneumatic pressure switch (mandatory if using any pneumatics) that senses 120 PSI and sends a signal to the cRio via a digital input on the sidecar. The default code has this all built in, it’s well-documented…