A class that provides properties for reading from a Emulation Connection.
isActive | Gets whether the connection is currently active or not. |
name | Gets the name of the connection. |
variables | Gets all of the variables associated with the connection. |
Emulation.Connection | Creates a reference to an Emulation Connection. |
readonly int isActive
Gets whether the connection is currently active or not.
When a connection is active, it will connection to an external server or PLC.
int connectionActive = connection.isActive;
readonly string name
Gets the name of the connection.
string name = connection.name;
Gets all of the variables associated with the connection.
Emulation.Variable myVar = connnection.variables[1];
Emulation.Connection( Variant connection ) |
connection | The name or rank of the connection. |
Creates a reference to an Emulation Connection.
Emulation.Connection connection = Emulation.Connection("OPC Connection");