|On this page…|
Components are modules that you include in a report setup file to insert elements, such as tables, lists, and figures, into a report. You also can use components to control report generation processing.
Many components have parent-child relationships with other components. For example, a child components of a Paragraph component include components such as Text, Image, and Insert Variable.
Use a combination of the following types of components in your report setup file.
|Report Structure Components|
Include a title page, sections, and other components to organize the content of a report.
Include components that automatically obtain information directly from a model to include in a report.
|User-Supplied Information Components|
Include text and graphics that you supply, independent of a model.
|Dynamic Reporting Components|
Set up dynamic control for when to include components and what information to report on for a component, based on data from a model or on other conditions that you specify.
Use the Report Explorer to add components to a report and to specify component properties.
The Simulink® Report Generator™ includes many components that obtain information directly from a model and include that information in a report. Using system-based components allows your report to reflect the current state of a model. You can generate the report whenever you want to capture the latest version of a model, without changing the report setup file.
Property table components display property name/property value pairs for objects in tables. Summary table components insert tables that include specified properties for objects into generated reports. The tables contain one object per row, with each object property appearing in a column, as shown in the following summary table.
To use descriptive information from DocBlock blocks, use the Documentation component.
A few examples of system-based components include:
For examples of using system-based components, see:
The Simulink Report Generator also includes system-based components that contain model elements from the following Simulink products:
Simulink Verification and Validation™
In addition to using system-based components to extract data from a system and insert that information into a report, you can also add content that you, or others, supply. For example, to include text, use the Paragraph and Text components.
To include notes about the report source files, use a Comment component.
For an example, see Add Introductory Text to the First Chapter.
Dynamic reporting components execute conditionally, enabling you to decide when a child component executes or how many times a child component executes. To control the report generation flow, use logical and flow components such as Logical If, Logical Then, While Loop, or For Loop.
A looping component runs its child components a specified number of times. There are several looping components, including logical loops, Handle Graphics® loops, and model and chart loops. For model and chart loops, you can control aspects such as the order in which the report sorts blocks.
For examples, see:
The output format and stylesheet that you select for a report determines most aspects of the generated report formatting. For details, see Report Output Format.
In addition to stylesheets that control the format and layout of the report, for some components you can set properties to specify formatting details for that specific instance of a component. For example, for the Simulink Property Table, you can specify whether to display table borders or specify the alignment of text in table cells.