You can use Parameter Promotion to promote any underlying parameter of a block either to a block mask or to a subsystem mask. This model contains a subsystem that has 3 Gain blocks ( Gain1, Gain2, and *Gain3 ). The variable K represents the Gain parameter for these Gain blocks. You can promote only the Gain parameter of each of these Gain blocks to the block mask as a single parameter. When you do so, the parameter K is available on the mask for editing and its value will be applied to Gain1 , Gain2 , and Gain3 blocks.
Select the Subsystem block.
On the Subsystem Block tab, in the Mask group, click Create Mask/Edit Mask.
In the Mask Editor dialog box, click the Parameters & Dialog tab.
In the Controls pane, click Promote .
In the Property editor pane, Type options field, click
In the Promoted Parameter Selector dialog box, select Gain1 .
Select Gain from the Promotable parameters table and click the Add to promoted parameter list button. Similarly, add Gain parameter for Gain2.
Click OK .
In the Mask Editor dialog box, edit the prompt names for the Gain parameter. Here the Prompt used is Common gain .
Click OK to finish creating subsystem mask with many-to-one promotion.
Simulate the model. Notice that the value 4 is passed from the mask to the underlying block Gain1, Gain2 , and Gain3 . In this case, the output shows 64.
open_system('promote_block_param_to_mask');