Combine signal/state structures
Whether to combine global block signal and state data into one structure
Model Configuration Pane: Code Generation / Interface
Description
The Combine signal/state structures parameter specifies whether the code generator combines global block signal and state data into one data structure.
Settings
Off
(default) | On
- On
Enables generation of global block signal data (block I/O) and global state data (DWork vectors) into one data structure.
- Off
Disables generation of global block signal and state data into one data structure. The code generator produces separate data structures for global block signals and global states.
This parameter setting is not relevant and, therefore, is not supported for component models configured with a service code interface.
Examples
Tips
The benefits to selecting this parameter are:
Enables tighter memory representation through fewer bitfields, which reduces RAM usage
Enables better alignment of data structure elements, which reduces RAM usage
Reduces the number of arguments to reusable subsystem and model block functions, which reduces stack usage
Better readable data structures with more consistent element sorting
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | On |
Safety precaution | No impact |
Programmatic Use
Parameter: CombineSignalStateStructs |
Type: character vector |
Value: 'on' | 'off' |
Default: off |
Version History
Introduced in R2011a