Datatype of NodeClass.Variable by browsing|OPC UA Standard|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
Datatype of NodeClass.Variable by browsing
Avatar
EuroEager2008
Member
Members
Forum Posts: 12
Member Since:
11/23/2014
sp_UserOfflineSmall Offline
1
03/23/2021 - 14:07
sp_Permalink sp_Print

I need to make a simple(?) app which lists all NodeId's, DisplayNames and datatypes for all Variables "below" a given nodeToBrowse by OPC.Ua.Client.Browser.Browse(nodeToBrowse)

I can easily retrieve a Opc.Ua.ReferenceDescriptionCollection thus getting DisplayName etc., but examining each Opc.Ua.ReferenceDescription doesn't give me anything (I think) which can be used to find the CLR type (or the Opc.Ua.BuiltInType enum).

One of the variables are Double which should have an id of 11 (in the BuitInTypes enum), but I cannot find this by the browsing described above.

Is this at all possible to achieve without actually reading the data?

Avatar
Randy Armstrong
Admin
Forum Posts: 1451
Member Since:
05/30/2017
sp_UserOnlineSmall Online
2
03/23/2021 - 18:48
sp_Permalink sp_Print sp_EditHistory

Is this at all possible to achieve without actually reading the data?

No. The expectation in UA is you browse and then read where the read fetches only those attributes that you need for your application (in your case the DataType, ValueRank and ArrayDimensions Attributes - the Value is not required).

You need to remember read multiple nodes at once (i.e. all Nodes returned in the Browse). Reading one node at a time will degrade performance. One Browse and one Read has minimal impact on performance.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Randy Armstrong
Guest(s) 25
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1349
Posts: 4577