Access programmatically to EnumTypeDefinition in Simulink Data Dictionary
16 次查看(过去 30 天)
显示 更早的评论
I'm trying to programmatically access to an enumerative object in a Simulink Data Dictionary (Simple_dd.sldd) by means of the following instructions:
>> ddObject = Simulink.data.dictionary.open('Simple_dd.sldd');
>> ddSection = getSection(ddObject,'Design Data');
>> enumerationType = find(ddSection,'Name','EnumA');
>> getValue(enumerationType)
the result is a EnumTypeDefinition object, whose class provides only the methods "appendEnumeral" and "removeEnumeral".
How can I access to each label contained in EnumTypeDefinition object and convert them in a string?
Thanks,
Giuseppe
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Design Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!