An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created.
The OpcEnum server browser is accessed on the remote machine to find the CLSID of the named OPC server.
The Disconnect method needs to be called to release the OPC server before the client program exits.
Overload | Description |
---|---|
Connect(String,String) | Connect to the named remote OPC Server. An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The OpcEnum server browser is accessed on the remote machine to find the CLSID of the named OPC server. The Disconnect method needs to be called to release the OPC server before the client program exits. |
Connect(String) | Connect to the named OPC Server. The name is the Server's ProgId such as Advosol.SimDAServer.1 to connect to a local OPC server. To connect to a remote server either: a) specify the fully qualified name such as \\Comp17\Advosol.SimDAServer.1 b) use the Connect(string,string) method An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The OpcEnum server browser is accessed on the remote machine to find the CLSID of the named OPC server. The Disconnect method needs to be called to release the OPC server before the client program exits. |
Connect(Host,String) | Connect to the named remote OPC Server. The OPC server is accessed with the defined credentials. The host computer name and optionally the user/password/domain can be defined. What needs to be defined to be able to launch or access an OPC server on a remote computer depends on the network, security and DCOM configuration. An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The OpcEnum server browser is accessed on the remote machine to find the CLSID of the named OPC server. OpcEnum is accessed with the defined credentials. The Disconnect method needs to be called to release the OPC server before the client program exits. |
Connect(Guid) | DEPRECIATED. Use Connect(string SrvName) with SrvName specified as {clsid} Connect to the local OPC Server with the specified CLSID. An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The Disconnect method needs to be called to release the OPC server before the client program exits. |
Connect(String,Guid) | DEPRECIATED. Use Connect( string ComputerName, string SrvName ) with SrvName specified as {clsid} Connect to the remote OPC Server with the specified CLSID on the specified machine. An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The method overload has the advantage that OpcEnum on the remote machen needs not be accessed to find the CLSID of the OPC server to be connected. The Disconnect method needs to be called to release the OPC server before the client program exits. |
Connect(Host,Guid) | DEPRECIATED. Use Connect( Host accessInfo, string SrvName ) with SrvName specified as {clsid} Connect to the remote OPC Server with the specified CLSID on the specified machine. The server access is made with the defined credentials (user/password/domain). An instance of the OPC COM server is created. The server is launched if it is not already running in the same user. If different applications access the same OPC server then you need to configure DCOM so that all applications launch the OPC server under the same user. Otherwise multiple instances of the OPC server are created. The method overload has the advantage that OpcEnum on the remote machen needs not be accessed to find the CLSID of the OPC server to be connected. The Disconnect method needs to be called to release the OPC server before the client program exits. |