Main Content

Variant Component

Add components with alternative designs

Description

Use a Variant Component block to create multiple design alternatives for a component.

To add or connect System Composer™ components:

  • Add an architecture Variant Component from the Modeling tab or the palette. You can also click and drag a box on the canvas, selecting the Variant Component option once complete.

  • Add a port by selecting an edge of the component and choosing a direction from the menu: Input or Output

  • Click and drag the port to create a connection. Connect to another component, or have the option of creating a new component to complete the connection.

  • To connect the architecture Variant Component blocks to architecture or composition model root ports, drag from the component ports to the containing model boundary. When you release the connection, a root port is created at the boundary.

To manage Variant Component choices:

  • By default two variant choices are created upon Variant Component creation. Right-click on the variant component and select Variant > Label Mode Active Choice and choose the active choice.

  • To add an additional variant choice, right-click on the variant component and select Variant > Add Variant Choice.

  • Double-click into the Variant Component to design the variants within it.

Ports

Input

expand all

If you connect to a source component, the interfaces on the ports are shared.

Output

expand all

If you connect to a destination component, the interfaces on the ports are shared.

More About

expand all

Introduced in R2019a