Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

2nd SubscribeDataChange calls freeze

  • phil56
  • Topic Author
  • Visitor
  • Visitor
28 Dec 2017 16:26 #5776 by phil56
2nd SubscribeDataChange calls freeze was created by phil56
Hi,
I'm evaluating the QuickOPCUA .NET solution (2017.2)

I'm testing the subscription part.

My code :
EasyUAClient client = new EasyUAClient();
 
UAEndpointDescriptor endPointDescription = new UAEndpointDescriptor("opc.tcp://localhost:51210/UA/SampleServer");
endPointDescription.UserIdentity.UserNameTokenInfo.UserName = "user";
endPointDescription.UserIdentity.UserNameTokenInfo.Password = "password";
 
client.DataChangeNotification += Client_DataChangeNotification;
 
client.SubscribeDataChange(endPointDescription,"ns=2;i=10221", 500);
//Thread.Sleep(100);
client.SubscribeDataChange(endPointDescription,"ns=2;i=10216", 500);

The first SubscribeDataChange works well, but if I add a second one, the program freezes
on the 2nd SubscribeDataChang

(I don't want to use the SubscribeMultiple method)

If I add the Thread.Sleep (100) between the two SubscribeDataChange calls, everything is ok.

Any hints on what could be the issue ?

Thanks in advance

Regards.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.041 seconds