slreportgen.finder.SignalFinder Class
Namespace: slreportgen.finder
Superclasses: mlreportgen.finder.Finder
Description
Use an object of the slreportgen.finder.SignalFinder class to find signals
used by a model or block.
Signals are the outputs of dynamic systems that are represented by blocks in a Simulink® diagram and by the diagram itself. To find unique signals in a system, the signal finder searches for block output ports. When a block or subsystem is searched, the results represent the output ports of the block or subsystem, as well as the output ports of the blocks whose output signals feed into the block or subsystem. When a model is searched, the results represent the output ports of the model Inport blocks and the block output ports that are connected to the model Outport blocks.
The slreportgen.finder.SignalFinder class is a handle class.
Creation
Description
creates a finder = slreportgen.finder.SignalFinder(container)SignalFinder object and sets the Container property to the
model or block specified by container. Use the
SignalFinder properties to:
Constrain the search to the types of signals found, such as input, output, or internal signals.
Specify the number of levels to search in a model.
Use the SignalFinder methods 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 the finder = slreportgen.finder.SignalFinder(Name=Value)SignalFinder object properties using name-value arguments. You can specify multiple name-value arguments in any order.
Properties
Methods
Examples
Version History
Introduced in R2021a