| Real-Time Workshop® | ![]() |
rtwreport(model, dir)
dir is optional.
The model for which generated code is to be documented.
The directory that contains the generated code. Specify this argument only if the build directory is not in the current directory or in the directory that stores the model. The directory you specify must be a standard build directory and its parent directory must include the model's project directory (slprj) .
The rtwreport function generates a report that documents the generated code for a specified model. If necessary, the function loads the model and generates code before generating the report, which includes:
Snapshots of block diagrams of the model and its subsystems
Block execution order
Summary of the generated code
Full listings of the 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 the current directory. If you specify an optional directory, the Real-Time Workshop software places the file codegen.html in the parent directory of the specified directory. If the specified directory is not found, an error results and the Real-Time Workshop software does not attempt to generate code for the model.
Generate a report for mymodel.
rtwreport(mymodel);
Documenting a Code Generation Project
![]() | packNGo | rsimgetrtp | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |