Set parameters of model instances

Parameters of model instances are actual parameters, that is, they are defined by the formal parameters of the instantiated model component.

Actual parameter properties cannot be changed. Only the value of these parameters can be set. However, if you do not set the value of an actual parameter, the default value defined by the formal parameter of the instantiated model component is used instead. For parameters of type datastruct, that specify a composite data type, you can select another composite data type provided that the selected composite data type of the actual parameter is derived from the composite data type of the formal parameter.

This section describes the different methods used to set the values of model instance parameters.

Changing parameter values

Linking parameters

One possibility to set the value of an actual model instance parameter is to link it with a formal parameter of the model in which the model instance is embedded.

Sine modulator example - Step 5