10:01, EET
June 30, 2015
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
14:10, EET
April 3, 2012
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
10:38, EET
January 30, 2014
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
15:15, EET
December 21, 2011
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.
Most Users Ever Online: 1919
Currently Online:
11 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemaeModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1