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: 1026
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
Member
Members
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: 1919

Currently Online:
24 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: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

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

Administrators: admin: 1