MATLAB Report Generator    
Model Loop

Component

Model Loop

Category

Simulink

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.

Choosing Models to Report On

You can report on:

The Model to Report column shows you what models are reported.

Reporting on the Current Model
   If you want to report on the current model, click on the Current button.

To find out what the current model is, type bdroot in the MATLAB command window.

Reporting on All Models

If you want to report on all models that are currently open, click on the All button.

Reporting on Custom Models

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.

Use this button
To do this

To report on all systems in the current model

To report on the current system in a model and all of its subsystems

To report on the current system only

To report on the current system and all the systems above it

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:

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.

Select this option
To report on these systems
Y
Systems with library links
N

Systems without library links

U

Systems with unique library links (if you have more than one system with the same library link, only one of them is included in the report)

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

Systems with graphical masks

Systems with no masks

F

Systems with functional masks

Systems with graphical masks

Systems with no masks

A
All systems
.

Insert anything into report?

No.

Filename

csl_mdl_loop


  Model Functions Model Property Table