I got this error while running a simulink model
4 次查看(过去 30 天)
显示 更早的评论
Hello!! Can you please help me fix it. I have tried to modify the error tolerances but it does not work
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/364654/image.png)
0 个评论
回答(1 个)
Peter O
2020-9-23
You generally get this error when your simulation has an error that causes one of the states to grow exponentially until one of the derivative terms grows so large that it goes out of bounds (like 10^300). Alternatively, it might have turned into a NaN value. The integrator can't handle either condition, so it throws an error.
Typically there's a block which is miswired leading to an unwanted positive feedback loop or an accidental divide by zero condition. In rarer instances there can be an issue created from a fixed step solver trying to handle system dynamics faster than its minimum time resolution. To fix that one you can try reducing the timestep. I'd recommend you look through your state equations and the terms feeding into the integrator for something out of place. If you can't find it, consider attaching a View/Log to a few key signal wires by right-clicking on them and stepping through the simulation. Past those general tips, we'll need a little more information about your simulation to help.
2 个评论
Peter O
2020-9-24
Okay. It's the flight dynamics, I'm guessing? If you haven't solved it, can you post a screenshot of your model and the equations? My hunch is that something might need to be connected differently. What solver are you using?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!