Main Content

Variant configuration not used by top model

Diagnostic behavior when variant configuration of a top model does not use an existing variant configuration of a referenced model

Since R2022b

Model Configuration Pane: Diagnostics

Description

This parameter applies to models that have variant configurations defined using Variant Manager for Simulink®. The parameter selects the diagnostic action to take when a top-level model references this model but does not use one of the predefined configurations of this model to set up its own variant configurations. Use this parameter to help verify that this model is used only for its tested variant configurations when referenced by another model. When you set this parameter to warning or error, the software issues the diagnostic when you compile the top model or activate the top model configurations using Variant Manager.

Settings

warning (default) | error | none
none

The software does not issue a diagnostic if the top model does not use this model in one of its published variant configurations.

warning

The software issues a warning if the top model does not use this model for one of its published variant configurations. To suppress the warning and continue with simulation, click Suppress.

error

The software issues an error and terminates the simulation if the top model does not use this model for one of its published variant configurations.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: VariantConfigNotUsedByTopModel
Type: string | character vector
Values: 'none' | 'warning' | 'error'
Default: 'warning'

Version History

Introduced in R2022b