Main Content

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

int32

32 bit signed integer type

int16

16 bit signed integer type

int8

8 bit signed integer type

uint16

16 bit unsigned integer type

uint8

8 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

ApplicationSetting
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