An error occurred while running the simulation and the simulation was terminated due to singularities in my Simulink model?

101 ビュー (過去 30 日間)
YERNAGU SATHEESH KUMAR  REDDY
YERNAGU SATHEESH KUMAR REDDY 2021 年 12 月 1 日
回答済み: Salman Ahmed 2021 年 12 月 31 日
Caused by:
  • Derivative of state '1' in block 'pmsm_ini_dc_bus/PID Controller/Integrator/Continuous/Integrator' at time 11.00046 is not finite. The simulation will be stopped. 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)

回答 (1 件)

Salman Ahmed
Salman Ahmed 2021 年 12 月 31 日
Hi Yernagu,
This problem occurs oftenly. This is usually caused because of Inf or NaN output produced at a block. Set the diagnostic "Inf or NaN block output" to error in the configuration settings. If this is the issue, you will get the error as follows:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Block 'BlockName' outputs 'NaN' for element x of output port x at major time step 0
where BlockName is the block in which error is thrown.
You can debug your model from there to bypass NaN or Inf values from reaching the integrator.

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by