Main Content

Inline invariant signals

Transform symbolic names of Invariant signals in generated code

Model Configuration Pane:Code Generation / Optimization

Description

TheInline invariant signalsparameter instructs the code generator to transform symbolic names of invariant signals into constant values.

Category: Optimization

Dependencies

This parameter is enabled when you setDefault parameter behaviortoInlined.

Settings

off(default) |on
On

金宝app®Coder™software uses the numerical values of model parameters, instead of their symbolic names, in generated code. An invariant signal is not inline if it is nonscalar, complex, or the block inport the signal is attached to takes the address of the signal.

Off

Uses symbolic names of model parameters in generated code.

Recommended Settings

Application Setting
Debugging Off
Traceability Off
Efficiency On
Safety precaution No impact

Programmatic Use

Parameter:InlineInvariantSignals
Type:特征向量
Value:'on'|'off'
Default:'off'

Version History

Introduced before R2006a