header files from simulink data dictionary
15 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Fangjun Jiang
2023-8-28
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');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!