- https://www.mathworks.com/help/simulink/slref/set_param.html
- https://www.mathworks.com/help/simulink/slref/getsimulinkblockhandle.html
FMU issue while setting parameter
17 ビュー (過去 30 日間)
古いコメントを表示
We have an FMU that imports successfully into Simulink. However, I'm struggling to set parameters from the workspace. I've tried using various Simulink callbacks but it doesn't seem to affect the FMU's parameters. I want to set parameters once at the start of the simulation.
0 件のコメント
採用された回答
Gayatri
2024 年 10 月 28 日 16:11
Hi Saurabh,
You can modify the parameters using the following MATLAB commands:
blockPath = 'model_name/block_name';
blockHandle = getSimulinkBlockHandle(blockPath, true);
set_param(blockHandle, 'parameter_name', 'parameter_value');
Please refer the below documentations for 'set_param' and 'getSimulinkBlockHandle' functions:
I hope it helps!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で RF Blockset Models for Transceivers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!