OPC Subscription timestamps|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC Subscription timestamps
Avatar
Alex COURTOIS-AUBERGER
New Member
Members
Forum Posts: 1
Member Since:
03/12/2021
sp_UserOfflineSmall Offline
1
03/12/2021 - 02:06
sp_Permalink sp_Print

Hello, i’m running tests on OPCUA servers to know their capacity to send information via subscriptions. I set up on the server a variable that is supposed to change every 200 ms. Using a python script i’ve subscribed to this node, and on every data changes event i take the server timstamps and store it on a list. Then i calculate the interval between each timestamps to verify if the 200 ms intervals are respected. However, it happends that the interval between two successive timestamps is negative, and i can’t figured out why..Cry

Does anyone know where this might be coming from?

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
03/12/2021 - 09:09
sp_Permalink sp_Print

Client side processing of NotificationMessages often requires multiple threads. This could be DataChanges reach your code ‘out of order’.

Examine your client APIs to make sure there are no possible race conditions.

If you are certain your client side is not an issue then try setting a large buffer size and a sampling rate that is faster than the publishing rate for your monitored items. This would force the server to return a block of datachanges in one message, in order.

If you see a problem with the timestamps in this scenario then there is problem with the server that needs to be taken up with the server vendor.

Also, make sure you check the ServerTimestamp and the SourceTimestamp.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 39
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889