Main Content

Adapter

Connect components with different interfaces

Description

The Adapter block allows you to connect the source and destination ports of components that have different interface definitions.

Adapter block

To add or connect System Composer™ components:

  • Add an Adapter block from the Modeling tab or the palette. The Adapter block has In and Out ports.

  • Click and drag a port to create a connection. Connect each port to another component. You can also create a new component to complete the connection.

To use an Adapter block:

  • Insert an Adapter block between two ports with different interfaces. You can create mappings between interface elements on each port.

  • Double-click the Adapter block to open the Edit Interface Mappings : Interface Adapter dialog. From here, you can create and edit mappings between input and output interfaces, and apply interface conversions: UnitDelay to break an algebraic loop or RateTransition to reconcile different sample time rates for reference models. For more information, see Interface Adapter.

Limitations

  • When used for structural interface adaptations, the Adapter block uses bus element ports internally and, subsequently, only supports virtual buses.

Ports

Input

expand all

If you connect to a source component, the interfaces on the ports should be compatible.

Output

expand all

If you connect to a destination component, the interfaces on the ports should be compatible.

More About

expand all

Introduced in R2019a