OPC UA Client Application: Reading the ArrayDiemensions|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
OPC UA Client Application: Reading the ArrayDiemensions
Avatar
Vinoth Kumar S
Member
Members
Forum Posts: 4
Member Since:
02/10/2017
sp_UserOfflineSmall Offline
1
02/15/2017 - 23:51
sp_Permalink sp_Print

Hi,

When we browse for the variable reference, by checking the value rank we will come to know that the variable is of array type or scalar type.

For Array type, some servers provide the array dimensions properly but some servers provide null for the array dimensions. In this case, how to identify the Array Dimension?

Regards,

Vinoth

Avatar
Guest
Guests
2
02/17/2017 - 00:18
sp_Permalink sp_Print

Some Servers cannot expose the array dimensions, because they vary or because the Server is front-ending a system that does not provide this meta information.

In that case the Client will get the dimensions only when reading the Value Attribute. UA Part 6 specifies how a Variant with multi-dimensional arrays is encoded on the wire. The mapping to a comparable Variant structure in a stack is performed different depending on the language (e.g. AnsiC, C# or Java).  

Avatar
Vinoth Kumar S
Member
Members
Forum Posts: 4
Member Since:
02/10/2017
sp_UserOfflineSmall Offline
3
02/17/2017 - 05:19
sp_Permalink sp_Print

Thanks for your reply. It is clear for me.

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