slreportgen.finder.StateflowObjectFinder Class
Namespace: slreportgen.finder
Superclasses: mlreportgen.finder.Finder
Description
Use objects of the slreportgen.finder.StateflowObjectFinder class to find
objects in a Stateflow® chart diagram. You can use these objects to search for:
Path or handle to a Simulink® model
Path or handle to a Stateflow chart block
Stateflow.ChartobjectsStateflow.StateobjectsStateflow.Machineobjectsslreportgen.finder.StateflowObjectFinderobjects that represent a model, Stateflow chart, Stateflow state, or Stateflow machine object
The slreportgen.finder.StateflowObjectFinder class is a handle class.
Creation
Description
creates a Stateflow object finder object. Use the properties of the finder to constrain the
search to specific types of objects.finder = StateflowObjectFinder(diagram)
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 = StateflowObjectFinder(Name=Value)
Properties
Methods
Examples
Version History
Introduced in R2023a