Subscription to data change misses values

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
kube
Jr. Member
Jr. Member
Posts: 1
Joined: 23 Sep 2019, 15:06

Subscription to data change misses values

Post by kube »

Dear all,

We are testing the evaluation version of the C++ OPC UA SDK and our goal is to create a subscription to a series of nodes, whose value is changed by an OPC UA server each 100 ms.
The issue is that our client is missing some of the data changes performed by the OPC UA server.
So my questions are:

1. The OPC UA protocol actually supports working with real time applications? (Sorry for asking, but I am a novice in this field)
2. I have tested configuring the subscription with different values of SamplingInterval and QueueSize, but nothing seems to change the amount of data received by the client.
3. In our use case is correct to use the data change protocol instead of the event protocol? (I read something about this in other website). What is the difference between both?

Thank so much in advance,
Kube.

JohnWick
Jr. Member
Jr. Member
Posts: 2
Joined: 03 Oct 2019, 09:14

Re: Subscription to data change misses values

Post by JohnWick »

Hello,

1. Yes
I have tested configuring the subscription with different values of SamplingInterval and QueueSize, but nothing seems to change the amount of data received by the client.
2. The client is missing the data change notifications, because of the QueueOverflow (Generally, this happens when publishingInterval = 2 * samplingInterval (PS: just an example)). Try it by changing publishingInterval. make sure to have publishingInterval is a bit faster than the samplingInterval.
3. Yes, for the values you have to use dataChange and you are doing it right.

Post Reply