Simulink Workspace Variable Loop

Generates a model variable loop


This component generates a model variable loop used by the Simulink Workspace Variable component to report on those workspace variables that the Simulink® model uses.

You can limit the variables included in the loop to those that match property name and value pairs that you specify. If you want to report on model variables, your report setup file must include this component as a child of a Model Loop component and must include a Simulink Workspace Variable component as its child. Also, in the Report Options dialog box, select Compile model to report on compiled information. For example:

Loop Options

  • Sort

    • Alphabetically by text: Sort variables alphabetically by name.

    • By data type: Sort variables alphabetically by data type.

  • Search for Simulink property name/property value pairs: Reports on variables with specified property name/property value pairs.

Section Options

  • Create section for each object in loop: Creates a separate section in the output for each variable.

    • If you specify to create a section for each variable, you can select the Display the object type in the section title to insert a variable name in each section title.

  • Create link anchor for each object in loop: Create a link target for each workspace variable in the loop so that other parts of the report can link to it.

Insert Anything into Report?

Yes, inserts a section if you select Create section for each object in loop and a link target if you select Create link anchor for each object in loop.



Was this topic helpful?