Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_TopicIcon
Network performance of reading multiple nodes
April 16, 2015
11:38, EEST
Avatar
asel
Member
Members
Forum Posts: 5
Member Since:
June 25, 2014
sp_UserOfflineSmall Offline

Hello,

I would like to ask about network performance and differences of methods UaClient.readAttribute and UaClient.readValues.

My situation is following:
Application is located in a destination with a long distance from OPC server (ping between servers is around 150ms) and I do 10-20 synchronous reads of nodes like UA.readAttribute(nodeId, Attributes.Value). Every read takes around 200 – 300 ms, that’s from 2 to 6 seconds in total.

My question is when I use UaClient.readValues(nodeIds[], …), where nodeIds is an array of all these 10-20 nodes whether internally this is translated to one “big” read from OPC server or is it just a series of reads similar to sequence of single reads. Or is there another better way how to read bigger amount of nodes?

I tried to analyze network traffic, but I wasn’t able to see the difference.

Thank you,
Ladislav Asenbrener

April 16, 2015
15:05, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1029
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, readValues() combines the read to a single read() call.

Note: if the server defines OperationLimits, those limits are obeyed to break the actual read call to smaller chunks, but it should not affect calls of 10-20 items in practice.

July 13, 2015
13:47, EEST
Avatar
asel
Member
Members
Forum Posts: 5
Member Since:
June 25, 2014
sp_UserOfflineSmall Offline

Thank you for reply.

I’ve been checking the network performance with readValues() for last few months and it worked fine, so I can confirm it was a good solution.

Best regards,
Ladislav Asenbrener

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 21
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6521
Newest Members:
wilfredoforeman, ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1047, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1