Connect components with different interfaces
The Adapter block allows you to adapt dissimilar interfaces. Connect the source and destination ports of components that have different interface definitions.
To add or connect System Composer™ components:
Add an Adapter block from the Modeling tab or
the palette. The block comes with an
Click and drag a port to create a connection. Connect each port to another component, or have the option of creating a new component to complete the connection.
To use an Adapter block:
Insert an adapter block between two ports with different interfaces which need to communicate. You will be able to create mappings between interface elements on each port.
Double-click on the Adapter block to open up 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.
When used for structural interface adaptations, the Adapter block uses bus element ports internally and, subsequently, only supports virtual buses.
Source— Input connection from a component
If you connect to a source component, the interfaces on the ports should be compatible.
Destination— Output connection to a component
If you connect to a destination component, the interfaces on the ports should be compatible.
|interface||An interface defines the kind of information that flows through a port. The same interface can be assigned to multiple ports. An interface can be composite, meaning that it can include elements that describe the properties of an interface signal.||Interfaces represent the information that is shared through a connector and enters or exits a component through a port. Use the Interface Editor to create and manage interfaces and interface elements and store them in an interface data dictionary for reuse between models.||Define Interfaces|
|interface element||An interface element describes a portion of an interface, such as a communication message, a calculated or measured parameter, or other decomposition of that interface.|
Interface elements describe the decompositions of an interface:
|Assign Interfaces to Ports|
|interface dictionary||An interface data dictionary is a consolidated list of all the interfaces in an architecture and where they are used. Local interfaces on a System Composer model can be saved in an interface data dictionary using the Interface Editor.||Interface dictionaries can be reused between models that need to use a given set of interfaces and interface elements. Data dictionaries are stored in separate |
|adapter||An adapter helps connect two components with incompatible port interfaces by mapping between the two interfaces. An adapter can also act as a unit delay or rate transition.|
With an adapter, you can perform three functions on the Interface Adapter dialog: