slreportgen.finder.EnumerationTypeFinder Class
Namespace: slreportgen.finder
Description
Use objects of the class slreportgen.finder.EnumerationTypeFinder to find
which enumerated data types are used in a Simulink® model or subsystem.
The slreportgen.finder.EnumerationTypeFinder class is a handle class.
Creation
Description
creates a finder that finds variables used in the specified
finder = slreportgen.finder.EnumerationTypeFinder(container)container, which can be a Simulink model or subsystem. See the Container
property. To specify the container, use a Simulink model or subsystem block path or handle. You can constrain the search to a
specific enumeration type name, user, or type of workspace by setting the properties of
the finder. Use the find or next method for the finder
to perform the search.
Note
This finder provides these options to get search results:
To return the search results as an array, use the
findmethod. Add the results directly to a report or process the results in afor-loop.To iterate through the results one at a time, use the
hasNextandnextmethods in awhile-loop.
Neither option has a performance advantage.
sets Properties using one or more
name-value arguments. You can specify multiple name-value arguments in any order. finder = slreportgen.finder.EnumerationTypeFinder(Name=Value)
Properties
Methods
Examples
Version History
Introduced in R2023b