Exporting FMU with parameter

24 ビュー (過去 30 日間)
Mehrdad Moradi
Mehrdad Moradi 2019 年 3 月 8 日
回答済み: surya venu 2024 年 5 月 13 日
I need to have a FMU from a Simulink with parameter. Not only a FMU with input and output.
There is nothing about this in Matlab help.
I try to create mask and adding parameter there, but after creating FMU there is no parameter inside.
Is Matlab supporting this feature? Is there any solution?
Thanks alot,
Mehrdad
  4 件のコメント
Andrä Carotta
Andrä Carotta 2019 年 5 月 9 日
Sorry, but whats a virtual FMU?
Mehrdad Moradi
Mehrdad Moradi 2019 年 5 月 9 日
writing equations and solver inside program.

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

回答 (1 件)

surya venu
surya venu 2024 年 5 月 13 日
Hi,
Simulink supports exporting FMUs with parameters. Here's how to do it:
1) In your Simulink model, add parameters by defining variables in the base workspace and use it in the model
2) In the FMU Export dialog, open the Parameters tab to configure each parameter:
  • Unselect the Exported option to hide a parameter
  • Modify the Exported Name so the parameter is displayed with a different name on the FMU interface
  • Set the Unit and Description of the FMU parameter variable by clicking on the parameter name and directly modifying the parameter object
  • If the FMU parameter is a Simulink.Parameter, click the hyperlink to modify the Unit and Description of the variable
  • If the FMU parameter is a regular MATLAB variable, clicking the hyperlink opens the model explorer
3) When exporting the FMU, the parameters will be included in the exported FMU.
4) When importing the FMU into another Simulink model using the FMU Import block, the parameters will be available in the Parameters tab of the block dialog.
Hope it helps.

カテゴリ

Help Center および File ExchangeCreate Standalone FMU についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by