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
OpenslexVariantManagement, which contains the variant configurations.
Double-click the blue block at the top to associate variant configuration data with the model.
In theModelingtab of toolstrip, openDesign节中,clickVariant Manager.
Variant configuration data
vcd
is associated with the model.
Step 2: Import Variant Configuration
In the Variant Manager, in theConfigurationstab, select
LinExterHighFid
.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
Open the referenced modelslexVariantManagementExternalPlantMdlRef.
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
, selectslexVariantManagementExternalPlantMdlRef
under theSubmodel Configurationstab.Select the
LowFid
configuration from the list.To validate the model using the
LinExterHighFid
variant configuration, selectLinExterHighFid
from theConfigurationslist and clickActivate.万博1manbetx®validates the new configuration against the model and returns the validation results.