Systems and methods for optimizing the application of pulse width modulation (PWM) in a voltage signal for delivering a current in a valve used to alternatively deliver pressurized gas to and vent from chambers in a vitrectomy probe used to drive a cutter.