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
This parameter requires Embedded Coder®.
Simulink block comments or Stateflow object comments enable this parameter.
Command-Line Information
Parameter:
BlockCommentType |
Type: character vector |
Value:
'Block path' | 'Simulink identifier' |
Default:
'Block path'
|
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No recommendation |