How can I list my 'InternalData' enumerated data type using Code Descriptor in Embedded Coder R2025b?
이전 댓글 표시
I have defined my own enumerated data type with 4 enumerated values in Embedded Coder R2025b. Two of the enumerated values are used in my model where I use CompareToConstant blocks. The enumerated data types are being used as "InternalData". I would like to use Code Descriptor to figure out if an enumerated type is used anywhere in the model, including as "InternalData". When I run the "getDataInterfaces" command as seen below, Code Descriptor returns the base type (uint16) instead of the enumerated data type:
>> cd = coder.getCodeDescriptor('ExampleModel');
>> cd.getDataInterfaces('InternalData').Type
Why is this command showing the base type "uint16" instead of the enumerated type?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!