フィルターのクリア

Why "Initializing" step during code generation from Simulink model takes so long?

4 ビュー (過去 30 日間)
Bartlomiej Stanczyk
Bartlomiej Stanczyk 2023 年 10 月 4 日
コメント済み: Mark McBroom 2023 年 10 月 21 日
There is a big Simulink model. Due to the fact that I am not able to make External Mode running in referenced models, I have merged the referenced models into one big top model. During code generation there is a step "Initializing" that takes very long. For example, the whole compilation and building takes 1 min, while Initialization takes 2 min. Why does it take so long? Is it possible to reduce this time (I am interested in code generation only)?
If this is not possible, I would be grateful for looking at my other question:
  1 件のコメント
Mark McBroom
Mark McBroom 2023 年 10 月 21 日
Why are you trying to run a referenced model in external mode... why not run the entire model in external model.
You can use the sldiagnostics function to narrow down the cause of the long initialization time: https://www.mathworks.com/help/simulink/slref/sldiagnostics.html

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by