This example shows how to import control variables to a variant configuration and associate a configuration with a referenced model.
Open slexVariantManagement, 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
model.
In the Variant Manager, in the Configurations tab,
select LinExterHighFid.
In the Control Variables tab, click
.
The variables are imported.

Note
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
slexVariantManagement, select
slexVariantManagementExternalPlantMdlRef under the
Submodel Configurations tab.
Select the LowFid configuration from the dropdown
menu.

To validate the model using the LinExterHighFid variant
configuration, select LinExterHighFid from the
Configurations list and click
Activate.
Simulink® validates the new configuration against the model and returns the validation results.