PIBridgePort Property

General info

Label

Port

Description

The port number of the PI-Bridge.

Data type

Int32

Default value

5959

Type

Regular

Code

2872

Symbolic name

MODEL_PROP_PIBRIDGEPORT

Lua access code

syslib.model.properties.PIBridgePort

Available since

1.34

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_HAS_DEFAULT The property has a default value as standard.

Examples

Read from or write to the PIBridgePort property.

  • Lua

  • C#

-- Read from the PIBridgePort
syslib.getvalue("<OBJECT FULL PATH>.MSIMsgDProperties.MSIMsgDHistorianOptions.PIBridgePort")

-- Write to the PIBridgePort
syslib.setvalue("<OBJECT FULL PATH>.MSIMsgDProperties.MSIMsgDHistorianOptions.PIBridgePort", 5959)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the PIBridgePort
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.MSIMsgDProperties.MSIMsgDHistorianOptions.PIBridgePort"));
// Write to the PIBridgePort
Result result = sli.WriteValue(sc, new WriteItem(5959, "<OBJECT FULL PATH>.MSIMsgDProperties.MSIMsgDHistorianOptions.PIBridgePort"));