在设计Simulink仿真模型中,经常会遇到一些仿真错误,原因往往是因为依赖文件找不到、模块维度设置不当、仿真步长和速率不匹配、控制器参数没调好、语法问题等等问题造成的,下面对一些常见的Simulink运行错误进行整理。
1.模型运行步长过大,会报以下错误
An error occurred while running the simulation and the simulation was terminated
Caused by:
- Derivative of state '1' in block 'Copy_of_PMSM_HF/obsever/Integrator2' at time 0.37500000000000006 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try r