Connecting Stacked Connectors

You can connect stacked connectors. Stacked connectors can appear when you import FMUs.


Before you begin:
  • In this scenario you have a model with two instances of an imported FMU that you want to connect to each other. Each FMU has two stacked connector groups, indicated by connector icons (see figure below).
  • Since you use direct connection in the scenario, note that:
See Also
About Connectors and Connections
  1. On the FMU to the left in the figure below, drag from the stacked connector group.

    Tip: To display the connectors´name in the diagram layer, from the Diagram section of the action bar, click Show Connector Names .

    A connection line appears and follows the cursor.

    Tip: For possible actions when drawing the connection line, see Step 2 in Use Direct Connection.
  2. Select the left stacked connector group on the second FMU.

    Tip: if you click anywhere on a component, the closest compatible connector for connection is selected.

    The Connection dialog box appears.

    The dialog box shows the stacked connector groups in separate panes. Each pane lists the stacked connectors in that group.

    The connect statement at the bottom of the dialog box shows which connectors are selected from each group for the connection.

  3. From the left pane in the Connection dialog box, select the connector to be connected.
    The connector is displayed in the first part of the connect statement.
  4. From the right pane in the Connection dialog box, click the connector to be connected to.
    The connector is displayed in the second part of the connect statement.
  5. Click OK.
    The connection is created. If you want to check the connection, you can:
    • Pause over the connection line. The tooltip shows the connection.
    • Open the Modelica Editor. To see the connection in the connect equations, expand . For entering the Modelica Editor, see Displaying and Editing Modelica Text.
  6. Optional: To rearrange the connection lines, use the following steps:

    Rearranging connections is required if several connection lines are overlapping during connection. You can separate the connection lines by dragging the line points.

    1. Click the connection line.
      The last created connection line is selected.

    2. Drag the endpoint of the connection line to get more line points to work with.
    3. Drag the connection line points and drop them to separate them from other connection line points.
      The following image shows an example after the rearranging of connections is done.

  7. Perform Step 1 - Step 6 for all connections you want to rearrange.

    Note: You get no warning if you happen to connect to a connector already connected to. To see all connections, you must enter the Modelica text and expand the connect equations . For entering the Modelica Editor, see Displaying and Editing Modelica Text.