Fmu with “canBeInst​antiatedOn​lyOncePerP​rocess” = false

7 ビュー (過去 30 日間)
Claire
Claire 2022 年 12 月 19 日
編集済み: Yash 2024 年 9 月 23 日
I would like to create an fmu from a simulink model where the “canBeInstantiatedOnlyOncePerProcess” fmu variable is set to false rather than true. Is there a way to set this?
  1 件のコメント
Markus Mühlbauer
Markus Mühlbauer 2023 年 8 月 24 日
Same here! Is there any solution?

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

回答 (1 件)

Yash
Yash 2024 年 9 月 23 日
編集済み: Yash 2024 年 9 月 23 日
The canBeInstantiatedOnlyOncePerProcess flag in modelDescription.xml can be set to true or false for a Simulink model with fixed-step solver by either:
1) Using CLI: By setting the value of parameter SupportMultiInstance as on or off in the function exportToFMU (https://www.mathworks.com/help/slcompiler/ref/exporttofmu.html#mw_543093a5-7db7-4a99-82fa-2ab09dbc03c6) The flag is set to false when this parameter is specified as on.
2) From GUI: By selecting the check box "Support multiple instantiation per process" in the Advanced tab of Export Model to Standalone FMU
This functionality seems to have been supported since MATLAB R2024b by MathWorks and is compatible with FMI 2.0 and 3.0 standards.

カテゴリ

Help Center および File ExchangeRF Blockset Models for Transceivers についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by