Model-to-code
Enable code highlighting in the code generation report when you click on Simulink blocks, Stateflow objects, and MATLAB functions
Model Configuration Pane: Code Generation / Report
Description
Link Simulink® blocks, Stateflow® objects, and MATLAB® functions in a model diagram to corresponding code segments in a generated HTML report so that the generated code for a block can be highlighted on request.
Dependencies
This parameter only appears for ERT-based targets.
This parameter requires an Embedded Coder® license when generating code.
This parameter is enabled when you select Create code generation report.
You must select the following parameters to use this parameter:
Include comments on the Code Generation > Comments pane
At least one of the following:
Settings
off
(default) | on
- On
Includes model-to-code highlighting support in the code generation report. To highlight the generated code for a Simulink block, Stateflow object, or MATLAB script in the code generation report, right-click the item and select C/C++ Code > Navigate to C/C++ Code.
- Off
Omits model-to-code highlighting support from the generated report.
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | No impact |
Safety precaution | No recommendation |
Programmatic Use
Parameter: GenerateTraceInfo |
Type: Boolean |
Value: on | off |
Default: off |
Version History
Introduced in R2007b