Main Content

Parameter tune level

Persistence level for MPT parameter data objects

Model Configuration Pane: Code Generation / Code Placement


Specify the persistence level for MPT parameter data objects.


This parameter must be the same for top-level and referenced models.


10 (default) | integer value

Default: 10

Specify an integer value indicating the persistence level for MPT parameter data objects. This value indicates the level at which to declare parameter data objects as tunable global data in the generated code. The persistence level allows you to make intermediate variables global and tunable during initial development so you can remove them during later stages of development to gain efficiency.

This parameter is related to the Persistence level value you that can specify for a specific MPT parameter data object in the mpt.Parameter properties dialog.

Recommended Settings

DebuggingNo impact
TraceabilityA valid integer
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: ParamTuneLevel
Type: integer
Value: a valid integer
Default: 10

Version History

Introduced before R2006a