Main Content

Interface Adapter

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.

Interface adapter block in a model between ports on a connection.

Map Similar Interfaces

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.

  1. Add an Adapter block to your model on the connection between the two components.

  2. Double-click the block to open the Interface Adapter dialog box.

  3. In the Select input box, select an interface element. In the Select output box, select an interface element.

  4. Click the Map button.

Use Unit Delay to Break Algebraic Loop

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.

  1. Add an Adapter block to your model on the connection between the two components.

  2. Double-click the block to open the Interface Adapter dialog box.

  3. From the Apply interface conversion list, select UnitDelay.

Use Rate Transition Between Simulink Behaviors

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.

  1. Add an Adapter block to your model on the connection between the two components.

  2. Double-click the block to open the Interface Adapter dialog box.

  3. From the Apply interface conversion list, select RateTransition.

See Also

Blocks

Related Topics