Code Tracing
Trace code to model objects using hyperlinks in the code generation report. Trace model objects back to corresponding lines of the generated code. You can use this two-way navigation to verify your generated code.
Functions
rtwreport |
Create generated code report for model with Simulink Report Generator |
rtwtrace |
Trace a block to generated code in HTML code generation report |
coder.report.open |
Open existing HTML code generation report |
coder.report.generate |
Generate HTML code generation report |
coder.report.close |
Close HTML code generation report |
Topics
Code tracing uses hyperlinks to navigate between generated code and its corresponding objects in a model.
Traceability tags appear in comments the above generated code.
Traceability in Code Generation Report
Create an HTML code generation report which includes links to trace between the source code and the Simulink®model window.
Trace Code to Model Objects by Using Hyperlinks
Trace code to model objects using hyperlinks in the HTML code generation report.
Trace Model Objects to Generated Code
Example of how to trace model objects to corresponding lines of generated code.
Trace Stateflow Elements in Generated Code
Trace different Stateflow®elements to corresponding lines in generated code.
Link Generated Code to Requirements
Link generated code to model object requirements.
Reload Existing Traceability Information
Example of how to reload existing traceability information for a model.
Customize Traceability Reports
In the Configuration Parameters dialog box, select parameters to customize the content of your traceability reports.
Generate a Traceability Matrix
If you have做资格工具包software orIEC Certification Kitsoftware and are using a Windows®host, you can generate a traceability matrix intoMicrosoft®Excel®format directly from the traceability report.
Web View of Model in Code Generation Report
Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
Limitations for traceability reports.