OpenTAP 9.34
API Reference
OpenTap.Port Class Reference

Object representing a port on an instrument or DUT. Ports are connected with Connection objects. More...

Inheritance diagram for OpenTap.Port:
OpenTap.IConstResourceProperty OpenTap.InputPort OpenTap.OutputPort

Public Member Functions

 Port (IResource device, string name)
 Initializes a new instance of the Port class.
 
IEnumerable< PortGetConnectedPorts ()
 Returns a list of the ports that this port has connections to.
 
IEnumerable< PortGetActiveConnectedPorts ()
 Returns a list of the ports that this port has connections to and that are active.
 
IEnumerable< ConnectionGetConnectionsTo (IResource device)
 Returns a list of connections from this port to a specified device.
 
IEnumerable< ConnectionGetConnectionsTo (Port otherPort)
 Returns a list of connections from this port to a specified port.
 
override string ToString ()
 Returns a string describing this port.
 

Properties

IResource Device [get]
 The device (usually an Instrument or Dut) on which this port exists.
 
IEnumerable< ConnectionConnections [get]
 List of Connections connected to this port.
 
string Name [get]
 The name of this port. (Should be unique among Port objects on the same device/resource).
 
- Properties inherited from OpenTap.IConstResourceProperty

Detailed Description

Object representing a port on an instrument or DUT. Ports are connected with Connection objects.

Member Function Documentation

◆ ToString()

override string OpenTap.Port.ToString ( )
inline

Returns a string describing this port.

Returns

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15