Specify whether block signals are declared locally or globally.
Category: Optimization
Default: On
Block signals are declared locally in functions.
Block signals are declared globally.
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.
This parameter requires a Simulink® Coder™ license.
This parameter is enabled by Signal storage reuse.
Parameter:
LocalBlockOutputs |
Value:
'on' | 'off' |
Default:
'on' |
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On |
Safety precaution | No impact |