slreportgen.finder.ModelVariableFinder Class
R2026bNamespace: slreportgen.finder
Superclasses: mlreportgen.finder.Finder
Find variables used by Simulink model
Description
Use objects of the class slreportgen.finder.ModelVariableFinder to find the
variables used by a Simulink® model.
The slreportgen.finder.ModelVariableFinder class is a handle class.
Creation
Description
creates a finder that finds variables used in the specified
finder = slreportgen.finder.ModelVariableFinder(container)container, which can be a Simulink model or subsystem. See the Container
property. You can constrain the search by setting the properties of the finder. Use the
methods of 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 name-value arguments. You can specify multiple name-value arguments
in any order.finder = slreportgen.finder.ModelVariableFinder(PropertyName=Value)