Login  •  Register


Set supported sampling interval in the server

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

Set supported sampling interval in the server

Postby pkrawal » 26 Sep 2019, 07:31

Hello,
i am using UA .NET based SDK version 3.0.0 with Windows 10 and compiling it with Visual Studio 2015. I am able to create a server just like the examples "GettingStarted.sln". The problem i faced is with the subscription of some variables. I found out that the sampling interval eventhough can be reduced to 1 ms, is practically limited to 100 ms in the server. I am able to change the minimum publishing interval in the config data. But i want to reduce the minuimum sampling interval. I subscribed to the CurrentTime of the server using UaExpert to find out that i got the notifications every 100 ms and not faster. I would like to have it like every 10 ms or 2 ms (1 ms would be perfect.). Where can i change this setting? How can i resolve this problem ?
Thanks.
pkrawal
Full Member
Full Member
 
Posts: 5
Joined: 24 Sep 2019, 07:43

Re: Set supported sampling interval in the server

Postby JohnWick » 03 Oct 2019, 09:35

Hello,

To get faster notifications, you have to change the PublishingInterval (subscriptionSettings) in UaExpert.

I found out that the sampling interval even though it can be reduced to 1 ms, is practically limited to 100 ms in the server
WHERE did you find this information?

as long as I know, the .NET server allows minimum samplingInterval = 0 as well. Check it by changing different samplingIntervals in UaExpert, check revisedSamplingInterval in the UaExpert logs, to know whether the server allows it or not.

I would recommend you to do client development tutorial, you can find it here.

http://documentation.unified-automation.com/uasdkdotnet/3.0.0/html/L1ClientTutorials.html
JohnWick
Jr. Member
Jr. Member
 
Posts: 2
Joined: 03 Oct 2019, 09:14

Re: Set supported sampling interval in the server

Postby pkrawal » 07 Oct 2019, 09:45

JohnWick wrote:Hello,

To get faster notifications, you have to change the PublishingInterval (subscriptionSettings) in UaExpert.


Hello JohnWick,
yes, PublishingInterval will give you faster notifications, but it is the SamplingInterval which decides how many notifications will be recieved in each published. I already set my PublishInterval to 50ms which is the least supported. Eg. if PublishInterval=50ms, and SamplingInterval=100ms, it will still get a notification once in 100 ms because eventhough it will publish every 50ms, there wont be any notification in every 1 of the 2 cycles. if SamplingInterval=10ms, then yes in each publish i will recieve 5 notifications. 50ms PublishInterval is okay for me. I am interested in more data and not faster data. Its explained in this link:
https://documentation.unified-automation.com/uasdkdotnet/3.0.0/html/L2UaSubscription.html

about the second comment to set SamplingInterval=0: SamplingInterval are a range of SamplingInterval supported by the server. If the client selects any other out of the range, it will be revised. SamplingInterval=0 ms means to automatically select the fastest sampling interval possible which was 100 ms in my case. Please see the following link:
http://documentation.unified-automation.com/uasdkdotnet/2.5.3/html/classUnifiedAutomation_1_1UaBase_1_1MonitoringParameters.html#a5c9e6df2d5aa8a187c56b81fccf83f22

I checked the UaExpert Log, which said RevisedSamplingInterval = 0 but as i said 0 means here as fast as possible and that is 100 ms because that is the default minimum sampling interval possible with Unified Automation Server. Also this was confirmed when i subscribed to the CurrentTime of the Server and got notifications in multiple of 100 ms. I hope i explained it properly. I welcome inputs from everyone as i am still struggling with this problem.
pkrawal
Full Member
Full Member
 
Posts: 5
Joined: 24 Sep 2019, 07:43

Re: Set supported sampling interval in the server

Postby Cleotilde » 05 Jan 2020, 15:07

you can find it here, I would recommend you to do this
Only here you can win real money 
always
Cleotilde
Jr. Member
Jr. Member
 
Posts: 1
Joined: 05 Jan 2020, 15:04


Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests

cron