Register now or log in to join your professional community.
1) Design a proper control architecture including a reference voltage that is compared with the output voltage of the circuit and the error is fed to the PWM (Pulse Width Modulator) which is software controlled. The PWM also receives your original input and the error signal will determine the PWMs giving you your desired output.
NOTE: Current is directly proportional to voltage so similar changes will apply to it.
2) A software named MACH CNC maybe helpful otherwise.