This example shows how to import control variables to a variant configuration and associate a configuration with a referenced model.
Open slexVariantManagementExample, which contains the variant configurations.
Double-click the blue block at the top to associate variant configuration data with the model.
In the Modeling tab of toolstrip, open Design section, click Variant Manager.
Variant configuration data
vcd is associated with the
In the Variant Manager, in the Configurations tab,
In the Control Variables tab, click .
The variables are imported.
You can specify variant controls in the MATLAB® global workspace or a data dictionary.
Open the referenced model slexVariantManagementExternalPlantMdlRef.
Double-click the blue block at the top to associate variant configuration data with the referenced model.
In the Variant Manager that is opened from
slexVariantManagementExternalPlantMdlRef under the
Submodel Configurations tab.
LowFid configuration from the dropdown
To validate the model using the
LinExterHighFid from the
Configurations list and click
Simulink® validates the new configuration against the model and returns the validation results.