Main Content

Static memory allocation

Dynamic or static memory allocation for external mode communication

Model Configuration Pane: Code Generation / Interface


The Static memory allocation parameter specifies whether the code generator applies dynamic or static memory allocation for buffers used in external mode communication.

This parameter enables the Static memory buffer size parameter.


To enable this parameter, set the Transport layer parameter to tcpip or serial.


Off (default) | On

Enables parameter Static memory buffer size for allocating dynamic memory.


Uses a static memory buffer for external mode simulation instead of allocating dynamic memory (calls to malloc).

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ExtModeStaticAlloc
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced before R2006a