Maximum number of internal loops reached in simulink simulation error

16 ビュー (過去 30 日間)
Sanket Goyal Goyal
Sanket Goyal Goyal 2017 年 6 月 20 日
回答済み: Karan Singh 2025 年 2 月 5 日 6:06
I am using hysteresis in simulink simulation but I am getting this error message: "Maximum number of internal loops reached" . In the s-function code initially number of MLOOPS was set to 200 but even after I changed it to 200000000000 I am getting same error.Please help.

回答 (1 件)

Karan Singh
Karan Singh 2025 年 2 月 5 日 6:06
That message typically comes from optimization routines and indicates that the optimization criteria weren't met within the specified number of internal iterations. You can find a similar discussion here: https://in.mathworks.com/matlabcentral/answers/343919-for-loop-max-iterations-exceeded
You can try resolving the issue based on that discussion. Since it seems inconclusive, as they suggested, a more detailed review of the code may be necessary to move forward.
You can also consider contacting MathWorks Support: https://in.mathworks.com/support/contact_us.html
Karan

カテゴリ

Help Center および File ExchangeAuthor Blocks Using C MEX S-Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by