Main Content

Custom comments (MPT objects only)

Include comments for MPT signal and parameter data in generated code

Model Configuration Pane: Code Generation / Comments

Description

Specify whether to include custom comments for module packaging tool (MPT) signal and parameter data objects in generated code. MPT data objects are objects of the classes mpt.Parameter and mpt.Signal.

Dependencies

  • This parameter only appears for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

  • This parameter requires that you include the comments in a function defined in a MATLAB® language file or TLC file that you specify with Custom comments function.

Settings

off (default) | on
On

Inserts comments just above the identifiers for signal and parameter MPT objects in generated code.

Off

Suppresses the generation of custom comments for signal and parameter identifiers.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNoimpact
Safety precautionNoimpact

Programmatic Use

Parameter: EnableCustomComments
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced before R2006a