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
How to get list of nodeIds of all the variable nodes or get nodeIds of a particular regex?
August 11, 2021
20:51, EEST
Avatar
amj005
Member
Members
Forum Posts: 33
Member Since:
July 27, 2021
sp_UserOfflineSmall Offline

Hi,

Is there a way I can get list of all the NodeIds of variables?
Also do we have a way of getting all the nodeIds which matches a particular regex pattern. Ex: “ns:3;i=1*” will get all the nodes of namespace 3 and integer starting with 1.

Thanks!

August 12, 2021
9:58, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

I assume your question to mean _all_ variables of a Server.

Is it possible to explain the use-case where you would need this?

Short/Easy answer:
Not possible in OPC UA and basically a workflow that would require this is not “the OPC UA way” of doing this.

Medium answer:
Technically there is the Query service call (https://reference.opcfoundation.org/Core/docs/Part4/5.9.3/), but I have not seen nor know a server that would support it. But this would be the most “OPC UA way” for this sort of an operation.

Long answer:
All nodes should be at the end of some hierarchical reference path from the Root node. Thus technically it is possible to do Browse operations repeatedly until you have seen all nodes. Note that the number of nodes can be theoretically infinite and the address space can contain loops. Compared to e.g. OPC Classic in OPC UA there is a lot of metadata thus there is a lot of nodes. It would be best to assume not all nodes fit into memory in a generic case.

Basically the only use-case for this kind of an operation would be e.g. an application that would try to export all the data of a server. Otherwise this kind of an operation can potentially last a very long time.

In general most cases should either be solvable by just checking some known Folder of the server e.g. in the DI companion specification it defines all devices should be discoverable from the ‘DeviceSet’ folder or subfolder.

Alternatively applications (such as our Browser) typically offer some sort of a tree view for the address space and lazily Browse the subnodes whenever user expands a node.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

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

TimK: 41

Member Stats:

Guest Posters: 0

Members: 677

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

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