Simulink.VariantUtils.convertToVariantAssemblySubsystem
Class: Simulink.VariantUtils
Namespace: Simulink
Syntax
Description
Simulink.VariantUtils.convertToVariantAssemblySubsystem(
converts the Variant Subsystem block
blockPathOrHandle
)blockPathOrHandle
to a Variant Assembly
Subsystem block. Use this syntax if the variant control mode of the
Variant Subsystem block is label
and
has only Model blocks and Create and Use Referenced Subsystems in Models blocks as its
variant choices.
Simulink.VariantUtils.convertToVariantAssemblySubsystem(
converts the Variant Subsystem block
blockPathOrHandle
,Name=Value
)blockPathOrHandle
to a Variant Assembly
Subsystem block as specified by one or more Name-Value arguments. Use
this syntax if the variant control mode of the Variant Subsystem
block is expression
or has at least one Subsystem block as its variant
choice.
Input Arguments
Examples
Limitations
Only Variant Subsystem blocks with the Variant control
mode set to label
or
expression
can be converted to a Variant Assembly
Subsystem block.
Alternatives
You can convert a Variant Subsystem block to a Variant Assembly Subsystem block through the block dialog. For more information, see Convert Variant Subsystem to Variant Assembly Subsystem.