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: 833
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: 119

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 91

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 897

Moderators: 12

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 898

Posts: 3787

Newest Members:

thojermaine, Lukas, lbtsheldon, dpto.informatica, nolazky8119, peter.jakubik, amaralesbeltateresa@yahoo.com, amaralesbeltateresa@gmail.com, esbeltateresaamaral@yahoo.com.br, doanphan111

Moderators: Jouni Aro: 833, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 422, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 16, Markus Johansson: 1

Administrators: admin: 0