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: 983
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: 1010
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: 518

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer

Moderators: Jouni Aro: 1010, 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