Documentation

Open Code Generation Report

You can refer to existing code generation reports at any time. If you generated a code generation report, in the Simulink®Editor, you can open the report by selecting the menu optionCode>C/C++ Code>Code Generation Report>Open Model Report. If you are opening a report for a subsystem, selectOpen Subsystem Report. ASimulink Coder™license is required to view the code generation report. An Embedded Coder®license is required to view a code generation report enhanced with Embedded Coder features.

If your current working folder does not contain the code generation files and the code generation report, the following dialog box opens:

Enter the full path of the build folder for your model,../model_target_rtwand clickOpen Report.

Alternatively, you can open the code generation report (model_codegen_rpt.htmlorsubsystem_codegen_rpt.html) manually into a MATLAB®Web browser window, or in another Web browser. For the location of the generated report files, seeHTML Code Generation Report Location.

Limitation

After building your model or generating the code generation report, if you modify legacy or custom code, you must rebuild your model or regenerate the report for the code generation report to include the updated legacy source files. For example, if you modify your legacy code, and then use theCode>C/C++ Code>Code Generation Report>Open Model Reportmenu to open an existing report, the software does not check if the legacy source file is out of date compared to the generated code. Therefore, the code generation report is not regenerated and the report includes the out-of-date legacy code. This issue also occurs if you open a code generation report using thecoder.report.openfunction.

To regenerate the code generation report, do one of the following:

  • Rebuild your model.

  • Generate the report using thecoder.report.generatefunction.

Was this topic helpful?