Just an idea, perhaps you can convert the PWM signal to a control voltage by performing a low pass on the PWM. However, this will introduce a significant delay and attenuate any high-frequency changes, which may affect your input step signal.
Ideally, you would record the control voltage before PWM modulation.