Timeout Property (Server object)



A Read/Write property representing the Timeout in seconds for network calls for this server. The Timeout controls the amount of time the PI-SDK waits for a synchronous call to the server to complete before deciding the connection is broken and setting the Server's Connected property to false. This timeout applies to all calls except the initial Open call establishing a connection where the ConnectTimeout property applies. The Timeout property for a server is stored in the Known Servers Table. If the property has not been set previously, the value for the timeout is taken from the PISDK application object's timeout property also stored in the Known Servers Table. If the PISDK timeout property has also not been set previously a value of 60 seconds is used by default.

To remove the storage of the Timeout property for a Server and revert to the default behavior, set the Server.Timeout property to 0.



The object placeholder is an object expression that evaluates to a Server object.


When this property changes, the OnEdit event is fired. Setting the property to a very small value (< 10 seconds) may not result in a call timing out quite that quickly.  The PI-SDK is subject to limitations of the underlying communications and Server implementations.

For server objects representing a replicated PI3 system this property is Read-Only. To modify a collective's member timeout use CollectiveMember.Timeout.

For server objects representing a PI2 system this property is read-only. The timeout setting used when communicating with PI2 servers is obtained from the PIPC\dat\pilogin.ini file if the section [Network], item Timeout is set.  A default value of 60 seconds is used if this is not set in the pilogin.ini file.  Changes to the pilogin.ini file will only take effect when a program is restarted.


Enabling Operational Intelligence