warning at simulink in matlab

1 回表示 (過去 30 日間)
saman ahmadi
saman ahmadi 2020 年 8 月 6 日
編集済み: Paul 2023 年 6 月 13 日
Hi. i want to run attachmented files and plot frequency(W) against logaritmic of ratio of displacement 5 to 1(U5/U1). when i run attachmented files face warning message like this:
"Warning: Block diagram 'asuume' contains 5 algebraic loop(s). To see more details about the loops use the command Simulink.BlockDiagram.getAlgebraicLoops('asuume'),
or the command line Simulink debugger by typing "sldebug asuume" in the MATLAB command window. To eliminate this message, set the Algebraic loop option in the
Diagnostics page of the Simulation Parameters Dialog to "None"
> In data (line 18)
Found algebraic loop containing:
'asuume/ddUcell' (algebraic variable)
'asuume/dd THp' (algebraic variable)
Found algebraic loop containing:
'asuume/ddUcell1' (algebraic variable)
'asuume/dd THp1' (algebraic variable)
Found algebraic loop containing:
'asuume/ddUcell2' (algebraic variable)
'asuume/dd THp2' (algebraic variable)
Found algebraic loop containing:
'asuume/ddUcell3' (algebraic variable)
'asuume/dd THp3' (algebraic variable)
Found algebraic loop containing:
'asuume/ddUcell4' (algebraic variable)
'asuume/dd THp4' (algebraic variable)"
please help me that how i correct this code matlab attachment untile i extract curves above.
thank you
  4 件のコメント
Walter Roberson
Walter Roberson 2023 年 6 月 12 日
I disagree. Messages about algebraic loops indicate that you have not properly connected your blocks, and that SImulink has guessed about how to connect the blocks. You need to repair the model.
Paul
Paul 2023 年 6 月 13 日
編集済み: Paul 2023 年 6 月 13 日
I think I know what you mean by "not properly connected" in this context, but that's not always the case. Sometimes algebraic loops are introduced intentionally, for example to solve a DAE. Not saying that's the best way to solve a DAE, but it's certainly an option.
Simuink doesn't guess about how to connect the blocks. It attempts to solve the algebraic loop as presented, unless the model is set to generate an error on an algebraic loop.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDebug Simulations Programmatically についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by