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: 1026
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: 1919

Currently Online:
13 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: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1