makeVariantAssembly
Syntax
Description
converts the Variant Component block variantAssemblyComp
= makeVariantAssembly(variantComponent
)variantComponent
to
a Variant Assembly Component block and returns the Variant Assembly
Component block object variantComponent
. Use this syntax if
the variant control mode of the Variant Component block is
label
and has only Model blocks and Create and Use Referenced Subsystems in Models blocks as its variant
choices.
converts the Variant Component block variantAssemblyComp
= makeVariantAssembly(variantComponent
,Name=Value
)variantComponent
to
a Variant Assembly Component block as specified by one or more Name-Value
arguments and returns the Variant Assembly Component block object
variantComponent
. Use this syntax if the variant control mode of the
Variant Component block is expression
or has at
least one Subsystem block as its variant choice.
Examples
Input Arguments
Output Arguments
Limitations
Only Variant Component blocks with the Variant control mode set to
label
orexpression
can be converted to a Variant Assembly Component block.The conversion from Variant Component to Variant Assembly Component is not supported for software architecture and AUTOSAR architecture.
More About
Alternatives
You can convert a Variant Component block to a Variant Assembly Component block through the block dialog. For more information, see Convert Variant Component to Variant Assembly Component.