Please consider registering

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
Forum Posts: 30
Member Since:
June 2, 2019
sp_UserOfflineSmall Offline

I have a server structure with
—>Pressure(variable) —->Value2

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,

June 24, 2021
11:41, EEST
Matti Siponen

Forum Posts: 252
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:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 124

pramanj: 86

ibrahim: 74

rocket science: 70

kapsl: 57

Sabari: 51

gjevremovic: 49

Xavier: 43

fred: 41

TimK: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1359

Posts: 5808

Newest Members:

doloreswanganeen, anqilan456, gaurav.kumar3, hulda51r1817, sonpaton9189533, Alexandercd, Matthewca, nadjettearmagnac, elwoodmerry7, eunicefisken

Moderators: Jouni Aro: 966, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 895, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 25, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 252, Lusetti: 0

Administrators: admin: 1