Main Content

rtwreport

(To be removed) Create generated code report for model with Simulink Report Generator

rtwreport will be removed in a future release. Use coder.report.generate instead. For more information, see Compatibility Considerations.

Description

rtwreport(model) creates a report of code generation information for a model. Before creating the report, the function loads the model and generates code. The code generator names the report codegen.html. It places the file in your current folder. The report includes:

  • Snapshots of the model, including subsystems.

  • Block execution order list.

  • Code generation summary with a list of generated code files, configuration settings, a subsystem map, and a traceability report.

  • Full listings of generated code that reside in the build folder.

rtwreport(model,folder) specifies the build folder, model_target_rtw. The build folder (folder) and slprj folder must reside in the Code generation folder. If the software cannot find the folder, an error occurs and code is not generated.

Input Arguments

collapse all

Model name for which the report is generated, specified as a character vector.

Data Types: string | char

Build folder name, specified as a character vector. When you have multiple build folders, include a folder name. For example, if you have multiple builds using different targets, such as GRT and ERT.

Data Types: string | char

Version History

Introduced in R2007a

collapse all

R2021a: rtwreport function will be removed

The function rtwreport will be removed in a future release. Use coder.report.generate instead.

To update your code, change instances of the function name rtwreport to coder.report.generate. You do not need to change the input arguments.

Unlike the rtwreport function, the coder.report.generate function provides additional input options that you can use to configure the generated report. However, the coder.report.generate function does not include snapshots of the model or the block execution order list.