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
Difference between BrowsePAth, RelativePath and idea of TranslateBrowsePathsToNodeiD's
June 24, 2021
11:11, EEST
Avatar
Rakshan
Member
Members
Forum Posts: 30
Member Since:
June 2, 2019
sp_UserOfflineSmall Offline

Hello,
I have a server structure with
Root->objects–>Boiler–>Temperature(variable)–>Value1
–>unit1
—>Pressure(variable) —->Value2
——>unit2

Browsepath provides all the nodeID details from Root to value2 (lets say)
What does RelativePath signify here?
Or is my understanding on BrowsePath wrong?

Aslo what does TranslateBrowsePathsToNodeiD’s signify here?

Could you please elaborate?

Best Regards,
Rakshan

June 24, 2021
11:41, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 349
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

A BrowsePath consists of a StartingNode defined by its NodeId and a RelativePath from the StartingNode to the target Node. A RelativePath consists of one or more RelativePathElements, which consist of:

The NodeId of the ReferenceType
A boolean that specifies whether or not it’s an inverse Reference
A boolean that specifies whether or not subtypes of the ReferenceType should be followed
A QualifiedName that specifies the BrowseName of the target Node

If you know the NodeId of an instance of a Type and you know that instances of the Type should target a Node with a specific BrowseName with a specific ReferenceType, then you can use TranslateBrowsePathsToNodeIds Service to get the NodeId of that Node.

I don’t quite understand the Server structure you’ve drawn, but assuming that Value2 is part of the ObjectType that Boiler is an instance of and that you know the NodeId of Boiler and all BrowseNames and ReferenceTypes between it and Value2, then you can construct a sequence of RelativePathElements that lead from Boiler to Value2 and use the NodeId of Boiler and that sequence as the inputs of TranslateBrowsePathsToNodeIds Service to get the NodeId of Value2.

You can’t start from root or Objects when using TranslateBrowsePathsToNodeIds since those Nodes aren’t instances of a Type that would define the path to Value2.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
29 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