Main Content

报告生成

生成报告并获取代码生成结果的描述

借助HTML代码生成报告,您可以查看生成的代码的源文件,并分析有关生成代码的信息,例如代码生成目标,子系统,代码接口和状态代码指标。代码生成报告提供了模型的代码和元素之间的可追溯性。在MATLAB环境之外包括模型的网络视图,以共享您的模型和生成的代码。

View meta information about the generated code by using the Code Descriptor API. The Code Descriptor API describes the data interfaces, function interfaces, parameters and global data stores in the generated code.

课程

展开全部

Coder.CodEdescriptor.codedScriptor 返回information about generated code
coder.descriptor.datainterface 返回有关不同类型数据接口的信息
coder.descriptor.functioninterface 返回有关入口点功能的信息
coder.descriptor.lookuptabledatainterface 返回information about Lookup Table blocks that have tunable parameters
coder.descriptor.BreakpointDataInterface 返回有关具有可调参数的查找表的可调断点设置数据
coder.descriptor.fixaxismetadata 抽象类获取断点设置数据信息
Coder.Descriptor.evenspacingMetadata 返回有关均匀间隔断点集数据的信息
Coder.Descriptor.nonevenspacingMetadata 返回有关非距离间隔间断点集数据的信息

功能

展开全部

rtwreport 使用金宝app报告生成器
coder.report.open 打开现有的HTML代码生成报告
coder.report.generate 生成HTML代码生成报告
coder.report.generatecodemetrics 生成静态代码指标报告
Coder.Report.Close 关闭HTML代码生成报告
getCodedScriptor CreateCoder.CodEdescriptor.codedScriptor模型的对象
GetAllDatainterFacetypes 返回数据接口类型
getAllFunctionInterfaceTypes 返回功能接口类型
getArrayLayout 返回array layout of the generated code
getDatainterfaces 返回指定数据接口的信息
getDataInterfaceTypes 返回生成代码中的数据接口类型
getFunctionInterfaces 返回information of the specified function interface
GetFunction InterfaceTypes 返回功能接口类型in the generated code
GetRefercrededModelCodedScriptor 返回Coder.CodEdescriptor.codedScriptor目的for the specified referenced model
GetRefercrededModelNames 引用模型的返回名称
isLookupTableDataInterface 确定对象是否为coder.descriptor.lookuptabledatainterface目的
GetallParameters 返回all associatedcoder.descriptor.lookuptabledatainterfaceandcoder.descriptor.BreakpointDataInterface对象
isBreakpointDataInterface 确定对象是否为coder.descriptor.BreakpointDataInterface目的

话题

报告生成

Reports for Code Generation

使用代码生成报告访问生成的代码文件和有关生成代码的信息。

Generate a Code Generation Report

构建模型后,生成HTML代码生成报告,用于分析生成的代码。

Generate Code Generation Report After Build Process

生成代码后,您可以生成HTML代码生成报告,而无需重建模型。

Open Code Generation Report

You can refer to existing code generation reports at any time.

以编程方式生成代码生成报告

At the MATLAB®命令行,您可以生成,打开和关闭具有以下功能的HTML代码生成报告:

包装并分享代码生成报告

要共享代码生成报告,您可以包装代码生成报告文件并将文件支持到zip文件中以进行传输。金宝app

代码生成报告中模型的网络视图

在MATLAB环境之外包括模型的网络视图,以共享您的模型和生成的代码。

分析生成的代码

分析生成的代码接口

Use the code interface report to see documentation of the generated code interface, including model entry-point functions and interface data, for consumers of the generated code.

静态代码指标

The code generator performs static analysis of the generated C or C++ code and provides these metrics in the static code metrics report in the code generation report.

Generate Static Code Metrics Report for Simulink Model

When generating code, generate a report that includes static code metrics, such as, the number of lines of code, size of global variables, and the number of reads and writes.

Analyze Code Replacements in Generated Code

代码生成报告中的代码替换报告部分记录了代码替换库(CRL)函数,这些功能用于代码生成期间代码替换。

检查代码生成假设

Use standalone workflow to check code generator assumptions.

文档生成的代码with Simulink Report Generator

Explains how to use the金宝app®报告生成器™software to generate a detailed report for a code generation project.

相关信息

特色示例