How to create tunable parameters for a standalone FMU Export?

17 ビュー (過去 30 日間)
David
David 2020 年 11 月 17 日
コメント済み: David 2020 年 11 月 24 日
Hello,
I want to export a standalone FMU from a Simulink model. I have already managed to export a FMU with the Simulink Compiler but I dont know how to create tunable parameters for this standalone FMU. I tried to define them as parameters in the model explorer, but they dont show up when importing the FMU into a FMU Block.
The model is made of mostly Simscape blocks and the tunable parameters should be the parameters in the Simscape Stepper Motor Block.
Thanks in Advance!
David

採用された回答

Juan Sagarduy
Juan Sagarduy 2020 年 11 月 22 日
Hi David
You need to set in the Simscape Preferences (MATLAB user pane) the option Show Run-time parameters on.
https://se.mathworks.com/help/physmod/simscape/ug/about-simscape-run-time-parameters.html?searchHighlight=simscape%20run%20time%20parameters&s_tid=srchtitle
Then you should see that simscape parameters for the stepper motor have 2 options: Compile-time and Run-time. Select the second for given parameters. Once the FMU is created, these shall appear upon double clicking the block.
Hope this helped out Cheers Juan
  3 件のコメント
Juan Sagarduy
Juan Sagarduy 2020 年 11 月 24 日
Hello David
In the attachment you find a folder with the FMU generated from a stepper motor model.
Some parameters are configurable as well. It seems like everything worked alright.
BR Juan
David
David 2020 年 11 月 24 日
Thank you very much! Now it worked. The problem was that I played around too much with my Simscape model, so it did not work. I tried it with a clean model again and it worked.
Best regards
David

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by