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: 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, dalenegettingerModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1