Documentation

slreportgen.finder.BlockResult class

Package: slreportgen.finder
Superclasses:

Create block finder result object

Description

Block search result object for a block in a Simulink® diagram. Elements include blocks, lines, states, and other diagram elements found by slreportgen.finder.BlockFinder.

Construction

result = BlockResult(elem) creates a search result object for a block found by a BlockFinder. The result object contains the Simulink block.

Note

The simulink.finder.BlockFinder find method creates objects of this type for each block that it finds. You do not need to create this object yourself.

finder = BlockResult(Name,Value) sets properties using name-value pairs. You can specify multiple name-value pair arguments in any order. Enclose each property name in single quotes.

Input Arguments

expand all

Simulink block, specified as a path or block handle to that block.

Properties

expand all

This read-only property contains a handle to the block returned in this result.

This read-only property specifies the name of the block returned in this result.

This read-only property specifies the type of the block returned in this result.

Example: "Gain"

This read-only property returns the path of the block returned in this result.

Additional information to add to this result. You can set it to any type of value.

Methods

getReporter Get block reporter

Copy Semantics

Handle. To learn how handle classes affect copy operations, see Copying Objects (MATLAB).

Introduced in R2017b

Was this topic helpful?