Distinguishing a node from a property of a node|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Distinguishing a node from a property of a node
Avatar
Johanna Sandström
Member
Members
Forum Posts: 4
Member Since:
02/16/2021
sp_UserOfflineSmall Offline
1
02/18/2021 - 05:26
sp_Permalink sp_Print

We are using the .NET Api (version 2.1.105.1) to browse nodes in OPC UA servers, so that our customers can select which nodes to monitor. Since we are (currently) only allowing the user to monitor leaf nodes, we are having issues when nodes have properties. How is the best way to find out if a node is a “real” node, or only a property connected to a node?

Avatar
Randy Armstrong
Admin
Forum Posts: 1457
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/19/2021 - 10:46
sp_Permalink sp_Print

The .NET API cannot connect to OPC UA servers.
It works with OPCClassic Servers only.

Can you clarify what you are trying to do?

Avatar
Johanna Sandström
Member
Members
Forum Posts: 4
Member Since:
02/16/2021
sp_UserOfflineSmall Offline
3
02/22/2021 - 02:31
sp_Permalink sp_Print

Sorry, I did not realise that we use both the .NET Api, and the OPC UA SDK (version 1.01.333.0). The latter is of course used for connecting to OPC UA servers.

Let's take the Quickstart InformationModel Demo server "BoilerServer" as an example. When we browse the nodes, we get a tree structure. If we follow the branch Boiler #1 -> Drum1001 -> LIX001 -> Output -> EURange, "Output" is what we want to identify as the node that a customer should be able to import. Is it possible to distinguish between the property of a node (in this case EURange) and the node itself (in this case Output), based on the information we get from SessionClient.Browse?

Avatar
Randy Armstrong
Admin
Forum Posts: 1457
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
02/22/2021 - 07:19
sp_Permalink sp_Print

Since we are (currently) only allowing the user to monitor leaf node.

This limitation may have made sense for COM DA client, however, it makes no sense to impose this limitation in an OPC UA client since there are not only variables with properties that contain process data, there are also variables with component variables (see https://reference.opcfoundatio.....tatusType/)

The proper way to fix this problem is to remove the "leaf" restriction and allow subscriptions to any variable in the tree.

I realize this may be technically difficult given your current design, however, any hack you do to preserve the current design will always leave some of your users complaining that they cannot subscribe to information that they should be able to subscribe to.

Avatar
Johanna Sandström
Member
Members
Forum Posts: 4
Member Since:
02/16/2021
sp_UserOfflineSmall Offline
5
02/24/2021 - 08:38
sp_Permalink sp_Print

Thank you for your answer! It would make sense to allow subscriptions to any node, but we are not there at the moment with our current design. But we have an idea of how to continue now.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 15
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1353
Posts: 4589