Solenoid Valve Question

Is it possible to modulate the air supply to the piston through the festo solenoid?(programming?)

Yes, we use the solenoid valves to activate the pistons, and control the solenoids through software.

How do you go about doing that because this is our first time using pneumatics

See if this step-by-step document helps.
It’s from this page which has some more help.

Thank you for your help it is greatly appreciated