MATLAB Report Generator | ![]() ![]() |
Category
Description
The Model Loop component runs its subcomponents for all selected Simulink models and systems. The Model Loop component can run its subcomponents for a specific model, such as the demo model F14, or it can run its subcomponents for all models or the current model.
Because Simulink components are context-sensitive, they should be parented by the Model Loop (although the Model Loop does not have to be the immediate parent of some Simulink components).
Attributes
This is the Model Loop attribute page.
Note To view a component attribute page in the Setup File Editor, select the component in the setup file outline on the left and click on the Options tab. If the component is not in the setup file outline, you must add it to the outline first. See Building and Editing the Setup File for a discussion on how to add a component to the outline. |
Choosing Models to Report On
The Model to Report column shows you what models are reported.
Reporting on the Current ModelTo find out what the current model is, type bdroot
in the MATLAB command window.
If you want to report on all models that are currently open, click on the All button.
If you want to report on a custom set of models and systems, click on the Custom button.
The Model to Report column, which contains a list of reported models, is initially empty. Type the name of the model in this column. Press the Esc key when you are finished.
To add another model to the list, click on the New button; an empty row will appear.
The following table shows you which button you should use to move a model up or down in the list, or to add or delete a model.
Use this button: |
To do this: |
![]() |
To move a model up in the list |
![]() |
To move a model down in the list |
![]() |
To remove a model from the list |
![]() |
To add a model to the list |
Choosing Systems to Report On
For each of the model reporting options (Current, All and Custom), you can select the systems that will be included in the report for each model. You can select the systems that are reported from the Systems to Report column.
You can also select the reported system through the context menu. To invoke the content menu, click on the right mouse button. The options shown in the table above are available through Set loop type in the context menu.
Specifying the Current System for the Reported Model
You can specify the current system in the reported model for the following reported systems:
How to specify the current system for:
Select the system you want to include and click on OK. The system you select is now displayed in the Systems to Report column.
For example, choose the custom model option and click in the Model to Report column. Type f14
in the Model to Report column. Choose to report on the current system and all the systems above it by clicking on the button shown below.
Click in the Systems to Report column. The Select "Current" Systems window, shown below, lists all of the systems in the f14
model.
Select f14/Controller and then click on Ok. The Systems to Report column now has the following entry: (f14/Controller). F14 and F14/Controller are included in the report.
If you choose to report on multiple systems, and you are reporting on the current system, then the systems you have selected are included in the report.
If you choose to report on multiple systems, and you are reporting on the current system and all the systems above it, then all the systems you have selected and all the systems above them are included in the report.
If you choose to report on multiple systems, and you are reporting on the current system and all of its subsystems, then all the systems you have selected and all their subsystems are included in the report. The subsystems that are included in the report depend on the options you choose for following library links and for looking under masks. These two options are discussed in the next two sections.
Following Library Links
Simulink blocks and systems can be linked to a library. See the Simulink documentation for more information about library links.
Invoke the context menu to toggle the Follow library links option on and off.
The following table shows the options for reporting on blocks or systems with library links. Select the option by clicking on the option letter until it changes to the letter of your choice. These options are available if you are reporting on one of the following:
The options shown in the table below are also available through Follow library links in the context menu.
Looking Under Masks
Simulink systems can have masks. The masks can be functional or graphical. See the Simulink documentation for more information about masks.
The following table shows the options for reporting on masked systems. Select the option by clicking on the option letter until it changes to the letter of your choice. These options are available if you are reporting on one of the following:
The options shown in the table below are also available through Look under masks in the context menu
Select this option |
To report on these systems |
N |
Systems with no masks |
G |
|
F |
|
A |
All systems |
Insert anything into report?
Filename
![]() | Model Functions | Model Property Table | ![]() |