Main Content

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. OpenslexVariantManagement, which contains the variant configurations.

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

  3. In theModelingtab of toolstrip, openDesign节中,clickVariant Manager.

    Variant configuration datavcdis associated with the model.

Step 2: Import Variant Configuration

  1. In the Variant Manager, in theConfigurationstab, selectLinExterHighFid.

  2. In theControl Variablestab, 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 modelslexVariantManagementExternalPlantMdlRef.

  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 fromslexVariantManagement, selectslexVariantManagementExternalPlantMdlRefunder theSubmodel Configurationstab.

  4. Select theLowFidconfiguration from the list.

  5. To validate the model using theLinExterHighFidvariant configuration, selectLinExterHighFidfrom theConfigurationslist and clickActivate.

    万博1manbetx®validates the new configuration against the model and returns the validation results.

Related Examples

More About