Access programmatically to EnumTypeDefinition in Simulink Data Dictionary
조회 수: 17 (최근 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!