Main Content

Variant configuration not used by top model

Description

Variant Manager lets you create variant configurations for a model that can be used to activate a specific variation in the model hierarchy. A variant configuration for a top-level model must also define the variant control variables used by any referenced models in its hierarchy. If the referenced model has defined variant configurations of its own, the top-level model can use one of those configurations for defining the control variables.

If your model has predefined variant configurations and if a top-level model references your model, then select the diagnostic action to take if Simulink® detects that the top-level model does not use one of the predefined configurations of your model while defining its own variant configurations. This setting helps you verify that your model is used only for its tested variant configurations by a top-level model.

Settings

Default: warning

none

When Simulink detects during model compilation or Variant Manager activation that a top-level model does not use this model for any of its published variant configurations, the software takes no action.

warning

When Simulink detects during model compilation or Variant Manager activation that a top-level model does not use this model for any of its published variant configurations, the software displays a warning and continues with the simulation. To suppress the warning and continue with simulation, click Suppress.

error

When Simulink detects during model compilation or Variant Manager activation that a top-level model does not use this model for any of its published variant configurations, the software displays an error and terminates the simulation.

Command-Line Information

Parameter: VariantConfigNotUsedByTopModel
Value: 'none' | 'warning' | 'error'
Default: 'warning'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics