Enumerated Data Definition for Code Generation

To generate efficient standalone code for enumerated data, you must define and use enumerated types differently than you do in the MATLAB® environment:

DifferenceMore Information
Supports integer-based enumerated types onlyEnumerated Types Supported in MATLAB Function Blocks
Each enumerated data type must be defined in a separate file on the MATLAB pathDefine Enumerated Data Types for MATLAB Function Blocks
Restricted set of operationsOperations on Enumerated Data
Restricted use in for-loopsRestrictions on Use of Enumerated Data in for-Loops

Was this topic helpful?