Main Content

Use Parameter Writer Block to Change Parameter of Block Inside Referenced Model

This example shows how to use a Parameter Writer block inside an Initialize Function block to change the Gain parameter of a Gain block in a referenced model.The Gain parameter is configured to change at every instance of the model.

In this example, the Gain parameter is the modeI instance parameter, and the Gain block is the parameter owner block. For more information about instance parameters, see Model.

For a step-by-step procedure to create this model, see Writing to Model Instance Parameters.

Open the model.

open_system("ParamRw_Top")

ParamRw_Top.png

See Also

| | | |

Related Topics