getVariantCondition
Class: Simulink.VariantConfigurationAnalysis
Namespace: Simulink
Variant condition on a block in a named variant configuration
Description
Use this method to find the variant condition on a block in a named variant
configuration after analyzing it using the Simulink.VariantConfigurationAnalysis
class. You must create a variant
configuration analysis object of type Simulink.VariantConfigurationAnalysis
for a model and use it to analyze the
required named variant configurations for that model before calling the getVariantCondition
method.
Note
This method requires Variant Manager for Simulink®.
returns the variant condition on the block variantCondition
= varConfigObj.getVariantCondition(configName
,blockName
)blockName
in the
named variant configuration configName
.
varConfigObj
is the
VariantConfigurationAnalysis
object for a model.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2019b