Model-to-code
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.
Category: Code Generation > Report
Settings
Default: Off
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.
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:
Command-Line Information
Parameter:
GenerateTraceInfo |
Type: Boolean |
Value:
on | off |
Default:
off |
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | No impact |
Safety precaution | No recommendation |