Use the Interface Adapter to map interface elements between two ports. You can also use the Interface Adapter to apply an interface conversion to use unit delays to break algebraic loops, or to insert a rate transition for different sample time rates. Launch the Interface Adapter from an Adapter block on the connection between the ports.
When two connected components with Simulink® behaviors have the same number of signals with different names, use an Adapter block and the Interface Adapter to define the port connections.
Add an Adapter block to your model on the connection between the two components.
Double-click the block to open the Interface Adapter dialog box.
In the Select input box, select an interface element. In the Select output box, select an interface element.
Click the Map button.
When connecting two components with port connections in both directions, an algebraic loop can occur. To break the algebraic loop, use an Adapter block to insert a unit delay between the components.
Add an Adapter block to your model on the connection between the two components.
Double-click the block to open the Interface Adapter dialog box.
From the Apply interface conversion list, select
UnitDelay
.
When connecting two Reference Components, the Simulink models they reference can have different sample time rates. For compatibility, use an Adapter block to insert a rate transition between the components.
Add an Adapter block to your model on the connection between the two components.
Double-click the block to open the Interface Adapter dialog box.
From the Apply interface conversion list, select
RateTransition
.