How to extract array elements in Excel Connector
From OPC Labs Knowledge Base
In order to obtain a single element from an OPC item or node that contains an array value:
- Start Connectivity Explorer.
- In the Browse tab of the Point Editor, select the point you are interested in.
- Switch to the Properties tab of the Point Editor.
- In the property grid, under the [Advanced] category, select the "Extract Array Element Indexes: row, and click the "..." button on the right side of the value column.
- In the "Int32 Collection Editor", press the Add button.
- In the property grid of the "Int32 Collection Editor", edit the integer next to "Value", entering the index of the array element you are interested in. The indexes are numbered starting with zero.
- In the "Int32 Collection Editor", press the OK button.
- In the property grid of the Properties tab of the Point Editor, verify that the selected array index is displayed next to the "Extract Array Element Indexes".
- Switch back to the Browse tab of the Property Editor.
- Add the data row into "Live Point Data" as normally, e.g. by clicking on the "Add Live Data Row" in the Action pane of the Point Editor window.
- In the Live Point Data window, verify that you see the extracted array element value as required.
- Drag&drop or copy&paste the value from Live Point Data window into Excel as normally.
This procedure works with all currently supported point types, e.g.:
- OPC-DA Item Point
- OPC-DA Property Point
- OPC-UA Attribute Point