Main Content

Perform in-place updates for Assignment and Bus Assignment blocks

Reuse the input and output variables of Bus Assignment and Assignment blocks

Model Configuration Pane: Code Generation / Optimization

Description

The Perform in-place updates for Assignment and Bus Assignment blocks parameter instructs the code generator to reuse the input and output variables of Bus Assignment and Assignment blocks if possible.

Dependencies

The parameter Signal Storage Reuse enables this parameter.

Settings

on (default) | off
On

Embedded Coder® reuses the input and output variables of Bus Assignment and Assignment blocks if possible. Reusing these variables reduces data copies, conserves RAM consumption and increases code execution speed.

Off

Embedded Coder does not reuse the input and output variables of Bus Assignment and Assignment blocks.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOn
Safety precaution

No recommendation

Programmatic Use

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

Version History

Introduced in R2017a