12:20, EEST
December 6, 2018
Hi Experts,
While testing the behavior of dataChange notifications by using prosys simulation server and prosys opc ua client I have noticed that if I set the publishing interval of subscription settings to 1000 ms and sampling interval of monitoredDataItem to 20000ms and queue size to 1 with discard oldest to true, I’m getting messages/notifications on each second which basically seems like it is not honoring the sampling interval at all .
As per my understanding from documentation(correct me if I’m wrong) sampling interval specifies the polling interval on which server samples the data from source and pushes it to queue and finally on publish interval flushes the queue and deliver the notifications to the client. Now as per the above scenario , since the polling or sampling interval in 20000 server should poll on that interval and because of which we should not get any updates or notifications during the time gap of the sampling and publish interval.
Kindly help me clear the above doubt.
Thanks in advance.
Dipankar.
14:27, EEST
April 3, 2012
Hi,
Your observation is correct. To put it shortly we don’t yet support that scenario very well in our SDK. The plan is to eventually support that, but it requires some internal changes to do actual sampling that way. I can go into more SDK details if needed, but basically in the typical scenario we (only) simulate sampling whenever new values are detected on the UaNodes, which is the case with SimulationServer.
Do you have a use-case, in which it would be useful and simply using a larger publishinginterval wouldn’t work?
P.S.
It is doable, see the MyBigNodeManager SDK sample, assuming you manually limit MonitoredDataItems by your code to only get updates on the sampling rate. However it is a bit more lower-level API to work with.
Most Users Ever Online: 1919
Currently Online:
20 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 729
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech KubalaModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1