Main Content

Static memory allocation

Dynamic or static memory allocation for external mode communication

Model Configuration Pane: Code Generation / Interface

Description

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.

Dependency

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

Settings

Off (default) | On
On

Enables parameter Static memory buffer size for allocating dynamic memory.

Off

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

Recommended Settings

ApplicationSetting
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