Main Content


(Not recommended) Get handle of object associated with Simulink Identifier

Simulink.ID.getHandle is not recommended. Use alternative functions instead.

For more information, see Compatibility Considerations.



handle = Simulink.ID.getHandle(SID) returns the handle of the object for the specified Simulink® Identifier SID.


collapse all

Open the model vdp.


Get the Simulink Identifier (SID) of the Sum block.

SID = Simulink.ID.getSID('vdp/Sum');

Get the handle of the Sum block using the SID.

handle = Simulink.ID.getHandle(SID)

Input Arguments

collapse all

Simulink Identifier (SID), specified as a character vector or string scalar.

To get the SID for an object, use the Simulink.ID.getSID function.

Example: 'vdp:4'

Data Types: char | string

Output Arguments

collapse all

Object handle, returned as a numeric scalar.

Data Types: double

Version History

Introduced in R2009b

expand all