Import Control Variables to Variant Configuration

This example shows how to import control variables to a variant configuration and associate a configuration with a referenced model.

Step 1: Open Variant Manager

  1. Open slexVariantManagement, which contains the variant configurations.

  2. Double-click the blue block at the top to associate variant configuration data with the model.

  3. In the Modeling tab of toolstrip, open Design section, click Variant Manager.

    Variant configuration data vcd is associated with the model.

Step 2: Import Variant Configuration

  1. In the Variant Manager, in the Configurations tab, select LinExterHighFid.

  2. 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.

Step 3: View Referenced Model Configuration

  1. Open the referenced model slexVariantManagementExternalPlantMdlRef.

  2. Double-click the blue block at the top to associate variant configuration data with the referenced model.

  3. In the Variant Manager that is opened from slexVariantManagement, select slexVariantManagementExternalPlantMdlRef under the Submodel Configurations tab.

  4. Select the LowFid configuration from the dropdown menu.

  5. 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.

Related Examples

More About