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

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 interface data. 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 service interface code configuration, the code interface report also includes information about services, as described in Analyze Generated Service Code Interface Report.

For code configured with data interfaces, the code interface report includes the following subsections:

To generate a code interface report, select the configuration parameters Create code generation report and Code Interface Report, as described in Generate Code Generation Report.

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

openExample('ConfigurationInterface');

To help you navigate code interface descriptions, the code interface report provides collapse/expand tokens and hyperlinks. For the Introduction,Function Interfaces, and Data Interfaces sections, click Hide or Show to collapse or expand that section.

The code interface report provides several forms of hyperlink navigation. For example:

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

Interpret the Function Interfaces Section

The Function Interfaces section of the code interface report is further categorized into subsections: Initialize Functions,Terminate Functions, Periodic Functions, and Aperiodic Functions. The subsections provide the following interface information, including model_initialize, model_step, and (if applicable) model_reset and model_terminate.

Function interfaces section of the code interface report.

Interpret the Data Interfaces Section

The Data Interfaces section of the code interface report is categorized into Inports, Outports,Parameters, and Internal data. It provides information about data elements associated with the model, including:

Code interface report for the Configuration Interface model showing the sections for data interfaces.