Analyze Generated Service Code Interface Report - MATLAB & Simulink (original) (raw)

Main Content

When you generate a code generation report, you can include a code interface report, which documents the generated code interface, including model entry-point functions and services. The code interface information helps you to review the generated code and integrate it with other code. The information in the report depends on the type of code interface configuration that you use. For models that use a data interface configuration for the generated code, the code interface report includes information about data and functions. See Analyze Generated Data Code Interface Report.

For code that you configure with service interfaces, the code interface report includes these subsections:

To generate a code interface report, select the configuration parametersCreate code generation report and Code Interface Report. For more information, see Generate Code Generation Report. For limitations that apply to code interface reports, see Code Interface Report Limitations.

To open the example models used in this topic, use the openExample command:

openExample('ComponentDeploymentFcn');

To help you navigate code interface descriptions, the code interface report provides show/hide tokens and hyperlinks.

For backward and forward navigation within the HTML code generation report, use the Back and Forward arrow buttons above the Content section in the upper-left corner of the report.

Interpret the Execution Interfaces Section

The Execution Interfaces section of the code interface report provides this interface information about each model entry-point function, includingmodel_initialize, model_step, and (if applicable) model_reset and model_terminate.

For example, consider the Execution Interfaces subsection for the model ComponentDeploymentFcn.

Execution section of the code interface report. The cursor points to the link to a data transfer service and a tooltip next to the cursor shows interface information for the data service.

Interpret the Service Interfaces Section

The Service Interfaces section of the code interface report provides this interface information about each service in the generated code.

For example, consider this portion of the Service Interfaces section for the model ComponentDeploymentFcn.

Code interface report for the ComponentDeploymentFcn model showing the sections for sender service interfaces and data transfer service interfaces.

Code Interface Report Limitations

These limitations apply to the code interface section of the HTML code generation reports.

See Also

Topics