Main Content

Trace to model using

Description

Specify format of comments for Simulink® blocks, Stateflow® elements, and MATLAB® function blocks.

Category: Code Generation > Comments

Settings

Default: Block path

Block path

The generated comment includes the entire block path from the root as the traceability link. For example:

/* Outport: '<Root>/Out1' */
rtwdemo_comments_Y.Out1 = 1;

Simulink identifier

The generated comment includes the Simulink identifier without the model name for the corresponding block or object. For example:

/* Outport: 'Out1' (':33') */
rtwdemo_comments_Y.Out1 = 1;

Dependency

Command-Line Information

Parameter: BlockCommentType
Type: character vector
Value: 'Block path' | 'Simulink identifier'
Default: 'Block path'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics