Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Traceability of Stateflow Objects in Generated Code

Traceability comments provide a way to:

  • Verify generated code. You can identify which Stateflow® object corresponds to a line of code and keep track of code from different objects that you have or have not reviewed.

  • Include comments in code generated for large-scale models. You can identify objects in generated code and avoid manually entering comments or descriptions.

To enable traceability comments, you must have Embedded Coder® or HDL Coder™ software. For C/C++ code generation, comments appear in the generated code for embedded real-time (ert) based targets only.

For more information about traceability and generated C/C++ code, see Trace Code to Model Objects by Using Hyperlinks (Embedded Coder) and Trace Model Objects to Generated Code (Embedded Coder). For more information about traceability and generated HDL code, see Traceability Report (HDL Coder).

Was this topic helpful?