How can I list my 'InternalData' enumerated data type using Code Descriptor in Embedded Coder R2025b?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!