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!