Simulink.VariantManager.convertToVariantAssemblySubsystem
Class: Simulink.VariantManager
Package: Simulink
Convert Variant Subsystem block to Variant Assembly Subsystem block
Syntax
Description
Note
This method requires Variant Manager for Simulink®.
Simulink.VariantManager.convertToVariantAssemblySubsystem(
converts the Variant Subsystem block
blockPathOrHandle
)blockPathOrHandle
to a Variant Assembly
Subsystem block. Use this syntax if the Variant Subsystem
block has only Model blocks and Subsystem
Reference blocks as its variant choices.
Simulink.VariantManager.convertToVariantAssemblySubsystem(
converts the Variant Subsystem block
blockPathOrHandle
,folderPathToKeepNewSubsystemFiles
)blockPathOrHandle
to a Variant Assembly
Subsystem block. Use this syntax if the Variant Subsystem
block has at least one Subsystem block as its variant
choice. During the conversion, the Model and Subsystem
Reference blocks, if any, continue to remain in the same location. The
Subsystem blocks are converted to Subsystem
Reference blocks and are saved in corresponding subsystem files inside
the folder specified as folderPathToKeepNewSubsystemFiles
.
Input Arguments
Examples
Limitations
Only Variant Subsystem blocks with the Variant control
mode set to label
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.
Version History
Introduced in R2022b