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: 1026
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:
10 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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1