Warning: The following command is preliminary. Its syntax may change. Be prepared to make changes to legacy scripts.

GetPortNumber

Returns the terminal port number for a given terminal port name.

Note: GetPortNumber can be used in other commands that require a port number, if a port name is preferable.

The PortNumber is the index of the name port in the original data and is not changed by any other settings applied to the oPostProc, including the Reorder settings. It is permanently linked to the port name and can be used interchangeably with the port name in many of the PostProcSettings script functions.

UI Access

From the Network Data Explorer tab, ensure the Full Port Names check box is activated. Port numbers will be represented in the object portNames.

Parameters
Name Type Description
 <portName> String The designation of the port number.
Return Value

Integer.

 

Python Syntax GetPortNumber()
Python Example

oNDE = oDesktop.GetTool("ndExplorer")

index = oPostProc.GetPortNumber("Input35")