Accessing Node with the value as an array|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
Accessing Node with the value as an array
Avatar
Josef Hartsough
New Member
Members
Forum Posts: 1
Member Since:
02/07/2023
sp_UserOfflineSmall Offline
1
02/08/2023 - 07:00
sp_Permalink sp_Print

I am trying to access the value of a Node that is an array. Im not sure how to properly handle this value or access the index of the array. I am currently getting the value with this code:

 

ReadNode(nodeId);

 

The type is DataValue but I am not able to iterate over this value. How can I change to a collection to access the elements within the array? 

Avatar
Randy Armstrong
Admin
Forum Posts: 1438
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/08/2023 - 18:04
sp_Permalink sp_Print

(Array)DataValue.Value

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