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
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: 1010
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: 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