system.opchda.isServerAvailable
This function is used in Python Scripting.
Description
Checks to see if the specified OPC-HDA server is defined, enabled, and connected.
Client Permission Restrictions
This scripting function has no Client Permission restrictions.
Syntax
system.opchda.isServerAvailable()
Parameters
Type | Parameter | Description |
---|---|---|
String | serverName | The name of the OPC-HDA server to check. |
Returns
Boolean - Will be true if the server is available and can be queried, false if not.
Scope
Gateway, Vision Client, Perspective Session
Code Examples
Example #1
# This example will check to see if there is an OPC HDA server called "ServerName" available.
system.opchda.isServerAvailable(“ServerName”)