OPC UA Client: Read Multidimensional Arrays |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: Read Multidimensional Arrays
Avatar
Vinoth Kumar S
Member
Members
Forum Posts: 4
Member Since:
02/10/2017
sp_UserOfflineSmall Offline
1
02/15/2017 - 23:16
sp_Permalink sp_Print

Hi Everyone,

I am developing OPC UA Client application. I am implementing in C++. Can you guide me to how to form the read request for reading the 2 dimensional array and 3 dimensional array. 

If possible please send the code snippet.

Regards,
Vinoth

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

The request is always the same whether you read a boolean, UInt32, a structure or a multi-dimensional array.

The value returned with the response is a Variant and - as the name already suggests - it will include different information depending on the returned value.

In the open source AnsiC stack on Github (https://github.com/OPCFoundati.....n/UA-AnsiC), for example a Variant for multi-dimensional arrays contains an "OpcUa_VariantMatrixValue".

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

Thanks for your reply. 

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Matteo Gelimeri
Guest(s) 21
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1351
Posts: 4579