Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
setting samplingInterval and queueSize
October 19, 2016
10:28, EEST
Avatar
omougoue
Member
Members
Forum Posts: 4
Member Since:
October 17, 2016
sp_UserOfflineSmall Offline

Hi,

My server is the opc-ua server siemens S7. In order to communicate with the server I am using prosysopc java sdk. The connection is working fine. I have set the samplinginterval=0.0 and QueueSize=100000, but I am surprised to see that samplingInterval=100.0 (monitoredItem.getSamplingInterval()) and QueueSize=1000 (monitoredItem.getQueueSite()) when I print out this parameters from my onDataChange method.
Any idea why my settings is not working?

Owen

October 19, 2016
11:08, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The server may revise the values according to what it is capable in practice. So you will find the revised values after the items are created in the server.

October 19, 2016
11:21, EEST
Avatar
omougoue
Member
Members
Forum Posts: 4
Member Since:
October 17, 2016
sp_UserOfflineSmall Offline

thank your for your reply, but I have no idea how I can find the revised values. I am newbe in this area

October 19, 2016
11:37, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The values you see at DataChange (100.0 and 1000) are the revised values.

October 19, 2016
12:02, EEST
Avatar
omougoue
Member
Members
Forum Posts: 4
Member Since:
October 17, 2016
sp_UserOfflineSmall Offline

Thank you for your reply! Apparently I have no chance to set the samplingInterval 1000.

October 19, 2016
13:02, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You requested SamplingInterval 0.0, which means “use the fastest possible” and the server revised it to 100.0, informing you of the actual interval it will use. Note also that typically, the SamplingInterval equals to PublishingInterval of the subscription. In this case, SamplingInterval can be set to -1 (or any negative value). You should be able to set the SamplingInterval to higher than 100.0, at least as high as the PublishingInterval of the subscription. (Even higher than PublishingInterval is specified to be possible, but the JavaSDK for example, does not support that in practice at the moment)

The server probably wants to limit the queueSize to 1000 to conserve its resource consumption.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1