Connection Port

Physical Modeling connector port for subsystem

Library

Utilities

  • Connection Port block

Description

The Connection Port block transfers a physical connection or signal across subsystem boundaries. Physical connections include Simscape™ conserving and physical signal connections, Simscape Multibody™ connections, and Vehicle Dynamics Blockset™ two-way connection ports, among others. This block is similar in function to the Inport and Outport blocks in the Simulink® library.

A subsystem needs a Connection Port block for each physical connection line that crosses its boundary. You can manually place a Connection Port block inside a subsystem, or Simulink can automatically insert a Connection Port block when you create a subsystem within an existing network.

Port Appearance on Subsystem Block

The Connection Port block adds a port to the parent Subsystem block. The port type depends on the connection or signal it transfers. The port appearance on the Subsystem block matches the port to which the Connection Port block connects inside the subsystem. For example, if the port transfers a Simscape conserving connection, then it appears on the Subsystem block as a Simscape Conserving port.

Port Location and Orientation on Subsystem Block

The orientation of the parent subsystem block and your choice of port location determine the Connection Port block port location on the parent subsystem block.

  • A subsystem is in its fundamental orientation when its Simulink signal inports appear on its left side and its Simulink signal outports appear on its right side.

    When a subsystem is oriented in this way, the actual port location on the subsystem block respects your choice of port location (left or right) for the connector port.

  • A subsystem orientation is reversed, with left and right interchanged, when its Simulink signal inports occur on its right side and its Simulink signal outports occur on its left side.

    When a subsystem is oriented in this way, the actual port location on the subsystem block reverses your choice of port location. If you choose left, the port appears on the right side. If you choose right, the port appears on the left side.

Parameters

Port number

Labels the subsystem connector port that this block creates. Each connector port requires a unique number as a label. The default value for the first port is 1.

Port location on parent subsystem

Choose here which side of the parent subsystem block the port is located. The choices are Left or Right. The default choice is Left.

See Port Location and Orientation on Subsystem Block preceding.

See Also

In the Simulink documentation, see Create Subsystems.

Introduced in R2007a