Default parameter behavior - Represent numeric block parameters in generated code - MATLAB (original) (raw)

Main Content

Represent numeric block parameters in generated code

Model Configuration Pane: Code Generation / Optimization

Description

The Default parameter behavior parameter specifies how to represent numeric block parameters in the generated code.

Dependencies

When you set Default parameter behavior to Inlined, you enable Inline invariant signals configuration parameter.

Settings

Tunable for GRT targets,Inlined for ERT targets (default)

Inlined

Set Default parameter behavior to Inlined to reduce global RAM usage and increase efficiency of the generated code. The code does not allocate memory to represent numeric block parameters such as the Gain parameter of a Gain block. Instead, the code inlines the literal numeric values of these block parameters.

Tunable

Set Default parameter behavior to Tunable to enable tunability of numeric block parameters in the generated code. The code represents numeric block parameters and variables that use the storage class Auto, including numeric MATLABĀ® variables, as tunable fields of a global parameters structure.

Tips

Application Setting
Debugging Tunable during development Inlined for production code generation
Traceability Tunable
Efficiency Inlined
Safety precaution No impact

Programmatic Use

Parameter: DefaultParameterBehavior
Type: character vector
Value: 'Inlined' | 'Tunable'
Default: 'Tunable' for GRT targets | 'Inlined' for ERT targets

Version History

Introduced in R2015b