header files from simulink data dictionary

Hi,
I have to get the header files from simulink buses stored in sldd file. Anyone has an idea how to do it?
Thank you
Regards

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2023 年 8 月 28 日

0 投票

Use Simulink Data Dictionary API, open the SLDD, get the bus object, get the "headfile" property
myDictionaryObj = Simulink.data.dictionary.open('myDictionary_ex_API.sldd');
dDataSectObj = getSection(myDictionaryObj,'Design Data');
fuelFlowObj = getEntry(dDataSectObj,'fuelFlow');

カテゴリ

ヘルプ センター および File ExchangeManage Design Data についてさらに検索

製品

リリース

R2022b

質問済み:

2023 年 8 月 28 日

回答済み:

2023 年 8 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by