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: 321
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: 518

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

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: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick

Moderators: Jouni Aro: 1009, 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