Base storage type for automatically created enumerations
Specify storage type and size of enumerations for state outputs
Model Configuration Pane: Code Generation / Optimization
Description
The Base storage type for automatically created enumerations parameter specifies the storage type and size for enumerations created with active state output.
Settings
'Native Integer' (default) | int32 | int16 | int8 | uint16 | uint8'Native Integer'Default target integer type
int3232 bit signed integer type
int1616 bit signed integer type
int88 bit signed integer type
uint1616 bit unsigned integer type
uint88 bit unsigned integer type
Tips
The default
'Native Integer'is recommended for most models.If you need a smaller memory footprint for the generated enumerations, set the storage type to a smaller size. The size must be large enough to hold the number of states in the chart.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | |
| Traceability | |
| Efficiency | |
| Safety precaution |
Programmatic Use
Parameter: ActiveStateOutputEnumStorageType |
| Type: character vector |
Value: 'Native Integer' | 'int32' | 'int16' | 'int8' | 'uint16' | 'uint8' |
Default: 'Native Integer' |
Version History
Introduced in R2014b