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

17 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

类别

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