OPC UA Server publishing cycles|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 UA Server publishing cycles
Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
1
05/08/2024 - 22:38
sp_Permalink sp_Print

Hi,

I have developed OPC UA SERVER application using CSharp(C#) language.

I have one requirement: OPC UA server shall send all notifications of value change of a variable between 2 notification publishing cycles

How to implement this?

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/09/2024 - 01:00
sp_Permalink sp_Print

The client has to set a QueueSize = (PublishingInterval/SamplingInterval) +1

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
3
05/20/2024 - 00:25
sp_Permalink sp_Print

Where do we need to set PublishingInterval and SamplingInterval? Server or client?

is therse parameters related to client or server?

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
05/20/2024 - 07:51
sp_Permalink sp_Print

They are parameters passed by the client to the server.

Read up on the Subscription model:

https://reference.opcfoundatio.....ocs/5.12.1

Avatar
prabhakaran prabs
Member
Members
Forum Posts: 42
Member Since:
01/07/2022
sp_UserOfflineSmall Offline
5
05/30/2024 - 04:54
sp_Permalink sp_Print

I have updated QueueSize for specific variable (PublishingInterval/SamplingInterval) +1 in client side.

PublishingInterval = 500ms

SamplingInterval = 250

So QueueSize = 3. 

Now My question is how to validate this requirement?

Avatar
Randy Armstrong
Admin
Forum Posts: 1511
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
05/31/2024 - 00:32
sp_Permalink sp_Print

Create an MSTest project and create a client that verifies the behavior.

You could also use the CTT but you would have to review the tests and figure out which one tests the behavior you need.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Magnus Raunio
Guest(s) 74
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1395
Posts: 4715