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
Poper way to search for Nodes
December 18, 2015
10:01, EET
Avatar
feherz
Member
Members
Forum Posts: 3
Member Since:
June 30, 2015
sp_UserOfflineSmall Offline

Hi,

I have some troubles to find my OPC Nodes automatically.

At the moment I create a NodeId using the namespace index and the absolute variable name of the NodeId.

But as those may vary between opc servers, I’d like to search for a NodeId.

Do I really have to browse each and every node to find the one I am looking for or is ther a proper way to do it?

Cheers,
Felix

December 18, 2015
14:10, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Is there something specific you are trying to do?

If you know the namespace uri of the namespace, you can also construct ExpandedNodeIds with it and after you have connected use UaClient.getNamespaceTable().toNodeId(ExpandedNodeId) to convert it to NodeId. You can use also the ExpandedNodeId is some places as a parameter instead of NodeId (mainly in UaClient.getAddressSpace().getNode).

– Bjarne

December 21, 2015
10:38, EET
Avatar
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

Hi Bjarne,

I found appropriate here to post next question:
Is it possible to add items to subscription without connection to the server – scenario when nsindexs are not known to the client before connection and client side has only hard coded nsuris? This is typical for software which works with in advance prepared database of server side table space.
MonitoredDataItem only accepts NodeId so looks that it is impossible to add item to subscription before establishing connection to server in the case when we don’t know name space indexes only name space uris. The point is that it would be great to have possibility to add items to subscription with ExpandedNodeId and when connection becomes available we can just execute subscription.setPublishingEnabled(true) which will automatically translate UaClient.getNamespaceTable().toNodeId(ExpandedNodeId).

BR
Goran

December 21, 2015
15:15, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes that would be a good idea. Unfortunately, the monitored items are geared towards making the call to the server, which requires the NodeId. But as you mention, it would be useful to be able to define the items with ExpandedNodeIds instead. I will examine the possibility a bit and we will need to see if it would be possible to implement this feature somehow.

For the time being, you will need to keep your own “wrapper” of the monitored items and subscriptions before the connection is made, to be able to accomplish this feature.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online: mithun
49 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: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6450

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

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

Administrators: admin: 1