how to fix this error

53 ビュー (過去 30 日間)
Edgar Yang
Edgar Yang 2023 年 7 月 20 日
回答済み: Yash 2023 年 8 月 17 日
I get this error when executing my robotic arm model with the adaptive controller
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Algebraic state in algebraic loop containing 'KR10_R1100_sixx_CR/Sum1' computed at time 0.0 is Inf or NaN. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances) or tweak the initial guess of algebraic loop variable values.
Component:Simulink | Category:Block error

回答 (1 件)

Yash
Yash 2023 年 8 月 17 日
Hi,
As per the screenshot shared by you, it seems you are getting algebraic loop error because of the feedback loops in the model that have no initial condition available for the calculations to start. To break such loops, you can introduce delay blocks that provide initial output.
You can refer to this article to know how to remove algebraic loops - Remove Algebraic Loops - MATLAB & Simulink (mathworks.com)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by