Main Content

Simulink.Mask.getOwner

Determine the block that owns a mask

    Description

    example

    maskobj.getOwner returns the interface to the block that owns the mask.

    To get the mask object for the mask on a block named BlockName, use this command.

    maskobj = Simulink.Mask.get("BlockName")

    Examples

    collapse all

    Get mask as an object using a masked block’s path.

    maskobj = Simulink.Mask.get('myModel/Subsystem');

    Get the interface to the block that owns the mask.

    maskobj.getOwner;

    Version History

    Introduced in R2014a