11:11, EEST
June 2, 2019
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
11:41, EEST
Moderators
February 11, 2020
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.
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_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1