Closed johnmurphy01 closed 7 years ago
Never mind, I just had to call client.Connect()
. Dumb mistake on my part. But possibly that should be included in the Read.me
@johnmurphy01 I'll add it to the Readme in the next change. Glad you got it figured out.
I am trying to connect to a local OPC DA server. The server is created by Matrikon's Server for Simulation and Testing. I am trying to connect using the C# implementation as outlined by the Read.me file but the status consistently returns a status of
NotConnected
.If I use the CLI, I am able to connect with no problems.
Here's my code in C#:
The value of OpcConstants.OPC_DA_HOST_URL is
opcda://localhost/Matrikon.OPC.Simulation.1
For the CLI, I am running
h-opc-cli.exe da opcda://localhost/Matrikon.OPC.Simulation.1
I know this question has been asked a few times, but I think the issue is specifically with the C# implementation. Any help would be appreciated