header files from simulink data dictionary

4 vues (au cours des 30 derniers jours)
Daniel Vicca
Daniel Vicca le 28 Août 2023
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

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 28 Août 2023
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');

Catégories

En savoir plus sur Manage Design Data dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by