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
readval method in client
March 10, 2016
18:41, EET
Avatar
pramanj
Member
Members
Forum Posts: 86
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

I subscribe to a large number of nodes from server to client. Then when I perform a read on one of these nodes using readval method in sampleConcoleClient, does it return the local subscribed value in the client address space or it fetches the value from server? Similarly when I perform a write using writeval methid in sampleConcoleClient example, hope it writes to the server address space. Please confirm
PRAMANJ

March 11, 2016
7:53, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

SampleConsoleClient reads and writes directly to the server.

In the SDK, if you use the methods in UaClient, it reads and writes to the server.

If you use the properties of UaNode objects that you get from AddressSpace, they are not typically reading or writing to the server, but use the local values in these objects.

March 11, 2016
10:59, EET
Avatar
pramanj
Member
Members
Forum Posts: 86
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Oh! Then my subscription is of no use if I am reading values from server directly again! I should avoid round rips to the server, i think i should use UaNode properties if i am subscribing or use read values from server every time, without subscribing. What is your suggestion?
Regards
PRAMANJ

March 11, 2016
11:53, EET
Avatar
Heikki Tahvanainen
Moderator
Members

Moderators
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

It’s important to note that read service and subscription service are two completely different services. Jouni’s answer above is a good explanation of how the different read methods work in the SDK. Using subscriptions does not change the way that the read methods work.

March 11, 2016
17:31, EET
Avatar
pramanj
Member
Members
Forum Posts: 86
Member Since:
October 21, 2014
sp_UserOfflineSmall Offline

Ok got it. I should know the difference in the two and use appropriate object and appropriate call depending upon my needs and requirements of efficiency.
regards
PRAMANJ

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
18 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: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

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