Main Content

Enable local block outputs

Description

Specify whether block signals are declared locally or globally.

Category: Optimization

Settings

Default: On

On

Block signals are declared locally in functions.

Off

Block signals are declared globally.

Tips

  • If it is not possible to declare an output as a local variable, the generated code declares the output as a global variable.

  • If you are constrained by limited stack space, you can turn Enable local block outputs off and still benefit from memory reuse.

Dependencies

  • This parameter requires a Simulink® Coder™ license.

  • This parameter is enabled by Signal storage reuse.

Command-Line Information

Parameter: LocalBlockOutputs
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityOff
EfficiencyOn
Safety precautionNo impact

Related Topics