getOwner

Class: Simulink.Mask
Package: Simulink

Determine the block that owns a mask

Syntax

p = Simulink.Mask.get(blockName)
p.getOwner

Description

p = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object.

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

Input Arguments

blockName

The handle to the block or the path to the block inside the model.

Examples

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

    p = Simulink.Mask.get('myModel/Subsystem');
  2. Get the interface to the block that owns the mask.

    p.getOwner;