Algebraic loop error - Simulink

5 ビュー (過去 30 日間)
John
John 2023 年 5 月 17 日
編集済み: John 2023 年 5 月 20 日
Hi, I was wondering if anyone could help.

回答 (1 件)

Paul
Paul 2023 年 5 月 17 日
Hi John,
The model equations as implemented are:
(1) actual_height = new_height
(2) new_height = displacement + actual_height
Or
(3) actual_height = dispslacement + actual_height
which is the algebraic loop.
Is that what the equations should be?
  2 件のコメント
John
John 2023 年 5 月 17 日
I see the error now. I think I need to add a time delay in the first equation. The ‘new height’ should be actual height but only for the next time step.
Do you think that adding a ‘delay one step’ block, in between the plant ‘new height’ output and ‘actual height’ input, would achieve this?
Paul
Paul 2023 年 5 月 17 日
Adding a delay somewhere between 'actual height' and 'new height' will remove the algebraic loop. But it's probabably an indication that something isn't being modeled correctly in the first place.

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

カテゴリ

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

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by