Simulink.BlockPath
Fully specified Simulink block path
Description
ASimulink.BlockPath
object represents a fully specified block path that uniquely identifies a block within a model hierarchy, even when the model hierarchy references the same model multiple times.
Creation
Use either theSimulink.BlockPath
orgcbp
function to create aSimulink.BlockPath
object. To get aSimulink.BlockPath
object for the most recently clicked or loaded block, use thegcbp
function.
Syntax
Description
creates an emptybp
=仿金宝app真软件。BlockPathBlockPath
object.
creates a copy of the specifiedbp
=仿金宝app真软件。BlockPath(blockpath
)BlockPath
object.
creates abp
=仿金宝app真软件。BlockPath(paths
)BlockPath
object from the specified character vector or cell array of character vectors. Each character vector represents a path at a level of the model hierarchy. Simulink®builds the full block path based on the character vectors.
Input Arguments
Properties
Object Functions
convertToCell |
Convert block path to cell array of character vectors |
getBlock |
Get single block path in model reference hierarchy |
getLength |
Get number of hierarchy levels in block path |
open |
Open specified model, library, subsystem, or block |
validate |
Determine whether block path represents valid block hierarchy |
Examples
中on History
Introduced in R2010b