Using shared configurations with configured hardware board

조회 수: 23 (최근 30일)
KristianT
KristianT 2022년 3월 7일
답변: Divya 2024년 1월 22일
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
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
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

Divya
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');

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by