Using shared configurations with configured hardware board
25 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I'm using a shared configuration as described here: https://www.mathworks.com/help/simulink/ug/referencing-configuration-sets.html
This seems to work fine until I set Hardware Implementation > Hardware board to "Raspberry PI". When I do this I get the following error when opening a model using the shared configuration :
------------
Parameter update is not supported for a configuration reference. Update parameter in the configuration set that it references.
Component:Simulink | Category:Model error
-----------------
And then I do not get hte Hardware tab I usually get when not using shared configurations.
Does anyone know why this isn't working?
Thanks in advance!
1 件のコメント
Hangxu Li
2023 年 9 月 25 日
I also have the same problem when using 21a. But it works for 23a now. Did you find any solution to this problem?
回答 (2 件)
Nakul Khadilkar
2022 年 3 月 11 日
Hi Kristian,
Try setting the configuration parameter as below:
configurationSettings.set_param('Name', 'value');
‘configurationSettings’ should be a variable in your workspace and the variable’s name should match Referenced configuration set name in the Model Explorer.
-Nakul
0 件のコメント
Divya
2024 年 1 月 22 日
Hi,
need to take referenced Configuration object that model config references,and then set required parameter.
configSet = getActiveConfigSet(modelName);
referencedConfigObj = getRefConfigSet(configSet); % taking referenced Configuration object
set_param(referencedConfigObj, 'parameter_name', 'value');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!