Simulink Enumeration Type Loop
Run Simulink Enumeration Type
child component for each Simulink enumeration type in the specified context
Description
This component runs the Simulink® Enumeration Type
child component for each Simulink enumeration type in the specified context. You can specify whether to have each
enumeration type in the loop.
Report On
All Simulink enumeration types used by all models.
Loop Options
Choose reporting options in this pane.
Enumeration type name: Specify an enumerated type name to search for in a Simulink model. This option also supports the computed property expressions of the form
%<enumTypeName>
, whereenumTypeName
is an enumeration type name that is evaluated to a string.Source type: Specifies which type of workspace that defines the enumerated data type to include in the loop.
"all"
"MATLAB file"
"dynamic class"
"data dictionary"
Source Type Value Description MATLAB® file "BasicColors.m"
The enumerated type is defined in the MATLAB file BasicColors.m
.Dynamic class "Simulink.defineIntEnumType"
The enumerated type is defined dynamically and has no source. An enumerated type is defined dynamically when you define it using the function Simulink.defineIntEnumType
. With this function, you can specify enumerated types you define externally to MATLAB that you want to import for use within the Simulink environment.Data dictionary "sldemo_fuelsys_dd_controller.sldd"
The enumerated type is defined in the data dictionary named sldemo_fuelsys_dd_controller.sldd
.Enable regular expression matching: Flag to enable regular expression matching for input arguments, specified as true or false with false being the default value.
Search reference models: Flag to enable the searching of enumerated types in reference models, specified as true or false with true being the default value.
Search for: When you select this option you can specify the enumerated types property name/property value arguments. The loop components then return only those enumerated types that match the search criteria that you have specified. For example
To add property name/property value pair:
First, you need to enable this option.
Then in the property value field, you can type
MATLAB file
.The loop component then looks for those enumerated types that have
MATLAB file
as their source.You can specify any
Simulink.VariableUsage
property name/ value pair.
Enumeration type users
Add selected property to the table Add a user name from the list.
Remove selected property from the table Remove a user name from the list.
Section Options
Create section for each object in loop: Inserts a section in the generated report for each object found in the loop.
Display the object type in the section title: Automatically inserts the object type into the section title in the generated report. This is only available when Create section for each object in loop is selected.
Create link anchor for each object in loop: Create a link target on each object 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.
Class
rptgen_sl.csl_enum_type_loop