| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
rtwreport(model)
rtwreport(model, directory)
rtwreport(model) generates a report that shows the generated code for a model. model is a string enclosed in quotes specifying the model name. If necessary, the function loads the model and generates code before generating the report. The report includes:
Snapshots of block diagrams of the model and its subsystems
Block execution order list
Code generation summary that includes a list of generated code files, configuration settings, a subsystem map, and a traceability report.
Full listings of generated code that resides in the build directory
By default, the Real-Time Workshop software names the generated report codegen.html and places the file in your current directory.
rtwreport(model, directory) includes a user-specified directory. directory is a string enclosed in quotes specifying the name of a directory. The Real-Time Workshop software places the generated report in the parent directory of the directory you specify. The Real-Time Workshop project directory (slprj) must be in the parent directory. If the user-specified directory cannot be found, an error results and the Real-Time Workshop software does not generate code.
Generate a report for model rtwdemo_codegenrpt:
rtwreport('rtwdemo_codegenrpt');
In the model window, select Tools > Report Generator. See Simulink Report Generator User's Guide for more information.
![]() | rtwrebuild | rtwtrace | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |