Custom comments (MPT objects only)

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.

Category: Code Generation > Comments

Settings

Default: Off

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.

Dependency

  • 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.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNoimpact
Safety precautionNoimpact

Related Topics