How can I list my 'InternalData' enumerated data type using Code Descriptor in Embedded Coder R2025b?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deployment, Integration, and Supported Hardware dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!