sim(model_name) errors with algebraic loop but sim via GUI or Ctrl+T is working

1 回表示 (過去 30 日間)
Alexander Lampe
Alexander Lampe 2020 年 4 月 3 日
回答済み: Urmila Rajpurohith 2020 年 4 月 6 日
Hello,
I want to simulate a model via command line using sim(model_name) but it errors with an agebraic loop.
When I open the model and use Ctrl+T or click the Run simulation button the model runs without any errors.
What is the command line equivalent of Ctrl+T? Where are the differences?
Note: The model contains refernced models and Minimize algebraic loop occurence is checked (disabling is no option).
Thanks and best regards
Alex

回答 (1 件)

Urmila Rajpurohith
Urmila Rajpurohith 2020 年 4 月 6 日
You can detect the presence of algebraic loops in a model by setting below configuration parameters
Configuration parameters -->Diagnostics -->minimize algebraic loops to error
now simulate the model if algebraic loops exist in the model, then diagnostic viewer throughs an error and to eliminate the algebraic loop you can refer to the below documentation link:

カテゴリ

Help Center および File ExchangeConfigure and View Diagnostics についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by