0
Fixed

Read Node not getting values for arrays

Mike Mar vor 3 Monaten in OPCUA4Unity aktualisiert vor 3 Monaten 5

Hello,

i´m using the OPCUA4Unity standalone package to communicate with my opc server.

Everything is setup correctly and i can connect to the server, import and read nodes.
Unfortunatly i cant get values for arrays though.

Example for the absolutePosition node:
The OPCUA_Node is recognizing that the node is an Array, but still wont fill in any actual values.

Image 1179


I doublechecked the values of the node using the OPCWatch tool:

Image 1180

I cant find anything related in the forums or the documentation.
How to handle arrays?


Kind regard

Mike 

Wird überprüft

Don't know why the array is not imported on your side. Can you try manually setting the array Nodes like this:

Image 1183

Hello, thanks for the response.
Tried setting it up as shown in your screenshot for a test node - no luck so far.

Hierarchy:

Image 1184

testStringArray1d:

Image 1185


testStringArray1d[1]:

Image 1186

testStringArray1d node:

Image 1187

Anything i´m missing here?


Kind regards

Mike

Will check it this afternoon on my computer. 

Fixed

Hi Mike,

I checked, you are right, the arrays have not been updated in the Inspector List of OPCUA Node. We will publish this with an official update next week. Will also extend the documentation for arrays.  I will send you with a private message a full OPCUA Update including an example how to read an array with code by subscribing to it.

Best regards
Thomas

Hi Thomas,

thanks for the quick solution.
Ill tryout the updated version.

Kind regards
Mike