FMU export Algebraic loop error

2 ビュー (過去 30 日間)
om singh
om singh 2020 年 12 月 18 日
回答済み: Pramil 2024 年 8 月 13 日
I am getting the below error while exporting the simulink/simscape model to FMU.
I converted all subsytems to atomic to remove similar error/ algebraic
fmu_exp/Solver Configuration/EVAL_KEY/INPUT_1_1_1 (algebraic variable) This algebraic loop may be resolved when the subsystem option 'Minimize algebraic loop occurrences' is selected on some or all of the atomic and enabled subsystems in this algebraic loop
Component:Simulink | Category:Model
Algebraic loops are not supported in generated code. Use the 'ashow' command in the Simulink Debugger to see the algebraic loops

回答 (1 件)

Pramil
Pramil 2024 年 8 月 13 日
Hi Om,
As the error suggests, your model contains an algebraic loop and before generating FMU for the same you need to eliminate that. You can refer to the following documentation to see how that can be done:
As for the ‘ashow’ command, it helps to identify and highlight algebraic loops in simulation debugging session. Here is a link you can go through to know more about the command:
Hope it helps.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by