MATLAB: Simulink Problem: Derivative input is Inf

derivative inputintegration blocksimu

Hi,
I face a Simulink problem at the input of the integration block, which is:
Derivative input 1 of 'diode4_1_test/Integrator' at time 0.00050002112037682831 is Inf or NaN. Stopping simulation. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
However,the input of the integration block is not infinity according the scope. I also tried to put saturation block at the input, but the problem also exists.
Thank you!

Best Answer

Use the Simulink debugger to identify where the Inf or NaN originates. There is a "NaN" breakpoint.
Related Question