I'm trying to simulate the following chopper controlled dc motor in MATLAB Simulink using a PI controller. Now without the freewheeling/flyback diode across the motor terminals I can simulate the model to get the desired speed output. But with the diode the motor seems to run at full speed and is uncontrollabe. Is it a glitch in the software? or is there anything I can do about it in the software?