Main Content

Generate Traceability Report

Generate model-to-code and code-to-model traceability report

Model Configuration Pane: PLC Code Generation / Reports


The Generate traceability report parameter generates an HTML code generation report with hyperlinks from code-to-model and model-to-code. When you click the hyperlink besides a certain line of code in the report, Simulink® PLC Coder™ highlights the corresponding block in your model. When you select a certain block in your model, the report highlights all lines of code corresponding to that block.

Specify whether to create a code generation report. This option is available on the PLC Code Generation > Report pane in the Configuration Parameters dialog box.


on (default) | off

Creates code generation report as an HTML file.


Suppresses creation of code generation report.

Recommended Settings

EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: PLC_GenerateReport
Type: string
Value: 'on' | 'off'
Default: 'on'


Simulink PLC Coder does not generate a traceability report file when generating Ladder Diagrams from Stateflow® charts. However, traceability report file is generated when generating Structured Text from Stateflow charts.

Version History

Introduced in R2012b