Main Content
Stateflow object comments
Include Stateflow object comments
Model Configuration Pane: Code Generation / Comments
Description
Specify whether to insert Stateflow® object comments.
Dependencies
Include comments enables this parameter.
This parameter enables Trace to model using (Embedded Coder).
Settings
off
(default) | on
- On
Inserts automatically generated comments that contain Stateflow object IDs or MATLAB® code line locations. The comments precede the generated code in the generated file. For example,
/* Entry 'First': '<S2>:2' */ rtY.Out1 = 1;
'<S2>:2'
is a hyperlinked traceability tag that facilitates tracing of generated code to corresponding Stateflow element.- Off
Suppresses comments.
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | No impact |
Safety precaution | No recommendation |
Programmatic Use
Parameter: StateflowObjectComments |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2017b