rtwtrace
Trace a block to generated code in code generation report
Syntax
Description
rtwtrace('
opens a code generation report
that displays contents of the source code file and highlights the line of code
corresponding to the specified block.blockpath
')
Before calling rtwtrace
, make sure that:
You select an ERT-based model and enable model to code navigation.
In the Configuration Parameters dialog box, select the Model-to-code (Embedded Coder) parameter.
You generate code for the model by using the code generator.
Your build folder is under the current working folder. Otherwise,
rtwtrace
might produce an error.
rtwtrace('
opens a code generation report that displays contents of the source code file and
highlights the line of code corresponding to the block identified by the Simulink® identifier (SID). SID is a unique designation for each block or element in
the model.Simulink_identifier
')
Examples
Input Arguments
Alternatives
To trace from a block in the model diagram, right-click a block and select C/C++ Code > Navigate to C/C++ Code.
Version History
Introduced in R2009b
See Also
Topics
- Verify Generated Code by Using Code Tracing (Embedded Coder)
- Model-to-Code Traceability (Embedded Coder)
- Model-to-code (Embedded Coder)