Page 1 of 1

Multidimensional arrays in OPC-UA client

Posted: Mon Nov 30, 2020 10:58 am
by coolen
except for calling functions, I did understand that the OPC-UA client is compliant to the OPC-UA standard.

Is there a way to coop with multidimensional arrays ? So say I have a server exposing a 32x3 integer array. in what kind of datapoint can I catch that, and what should the conversions type be ? I'm using 3.16 latest patch) I tried dyn_int with integer conversion, but that triggers a fault, and I cant find anything in the documentation.

So like OPCUA server point declared as: ArrayDimensions [3,3], Value: ValueRank: TwoDimensions Value [ [1,1,1],[2,2,2],[3,3,3]] List Of Integer


The error I get is:
WCCOAopcua (2), 2020.11.30 10:54:55.828, PARAM,SEVERE, 54, Unexpected state, OpcUaCTrans:: type mismatch
WCCOAopcua (2), 2020.11.30 10:54:55.828, PARAM,SEVERE, 54, Unexpected state, DP: (Type: 235 Sys: 1 Dp: 526 El: 3 : _address..), MAN: (SYS: 1 Driver -num 2 CONN: 1), Conversion failed in Transformation::toVar for Demo$demo_read$1$2$/0:Objects/1:Demo/1:Matrix/1:Int32, [len = 8, itemSize = 8, subindex = 0, type = 756]

Thanks in advance,

Arthur

Re: Multidimensional arrays in OPC-UA client

Posted: Fri Dec 11, 2020 2:15 pm
by gschijndel
It looks like multidimensional arrays are not supported. I guess it would be not too difficult to convert a multidimensional array to a flat array.

Contact support to create a feature request for this.