Create Custom Interface for Simulink Blocks

This example shows how to mask the Gain block and promote only the Gain parameter to the mask, while hiding the other options and adding custom parameters.

  1. Right-click a Gain block in your model and select Mask > Create Mask.

    The Mask Editor appears.

  2. Select the Parameters & Dialog pane.

  3. Click the Promote button. .

    The Promoted parameter selector dialog box opens.

  4. Select the Gain parameter in the Promotable parameters table and click the right-arrow button to add to the Promoted parameters list.

  5. Click OK to return to the Mask Editor.

  6. Double-click the Gain block. The new mask opens, showing only the promoted Gain parameter and custom parameter.

  7. Look under the mask to see the underlying Gain block dialog box. You can see that the Gain parameter is now disabled because you have promoted it to the mask.

Was this topic helpful?