![sp_Feed](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_Feed.png)
![sp_TopicIcon](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_TopicIcon.png)
10:28, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/defaults/userdefault.png)
October 17, 2016
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
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
11:08, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/1496998201jaro_researchgate_2017.jpg)
December 21, 2011
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
11:21, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/defaults/userdefault.png)
October 17, 2016
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
11:37, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/1496998201jaro_researchgate_2017.jpg)
December 21, 2011
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
12:02, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/defaults/userdefault.png)
October 17, 2016
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
13:02, EEST
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/1496998201jaro_researchgate_2017.jpg)
December 21, 2011
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
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.
Most Users Ever Online: 1919
Currently Online:
76 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: 758
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1532
Posts: 6478
Newest Members:
lalo233, Debraswity, GlennSJ, salsabila, Williamcoeft, Zof, DonnieHap, EduardoDok, wwwrtwoocom, BryantvEpModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1033, Jimmy Ni: 26, Matti Siponen: 351, Lusetti: 0
Administrators: admin: 1