Attach a config set from a data dictionary to a model programmatically

조회 수: 17 (최근 30일)
Marcus
Marcus 2025년 4월 3일
댓글: Marcus 2025년 4월 9일
I have a configuration set in a simulink data dictionary.
How can I use this config in a model?
I can check it out using
dd = Simulink.data.dictionary.open('mydict.sldd')
ds = dd.getSection('Configurations')
cf = ds.find('-class','Simulink.data.dictionary.Entry')
which is of type Simulink.data.dictionary.Entry
What do I need to do to set this as the reference configuration of a model?
There is
configRef = Simulink.ConfigSetRef;
but I cannot find any reasonable documentation on how to use in that use case.
Or is there a way to convert the entry object of the dictionary to a Simulink.ConfigSetRef object?

답변 (1개)

Oliver Jaehrig
Oliver Jaehrig 2025년 4월 4일
  댓글 수: 9
Oliver Jaehrig
Oliver Jaehrig 2025년 4월 9일
Yes, that is correct.
Do you have any further questions?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by