Please help. I am have this code that I am trying to run but I keep getting an error about algebraic loop with a voltage measurement and that there might be a singularity.

2 ビュー (過去 30 日間)
Attached is a copy of the Simulink code. I keep trying to run it, but I keep getting an error saying that there might be a singularity in the code. I've tried different things but I can't get the code to run. Run it for yourself and you will see what I mean. Thanks.

採用された回答

Cris LaPierre
Cris LaPierre 2025 年 3 月 14 日
編集済み: Cris LaPierre 2025 年 3 月 21 日
See this answer for more details on what causes algebraic loops, as well as this doc page.
See Remove Algebraic Loops doc page for strategies.
The error identifies the loops in 5 subsystems. I was able to resolve them by adding a unit delay to each subsystem.
There is still an error that stopped the simulation (there may be a sigularity)

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by