Topic RSS8:11, EEST
May 8, 2014
OfflineHello,
we are currently evaluating the OPC UA Java SDK method call interface. We’d like to pass complex data through the method call as arguments. Examples we found regard plain data types and enums. In our case we’d like to use arrays of structures (C-like structs).
An example in pseudo code:
Type myType{
int number;
string name;
double value;
}
Method myMethod(myType[] myData){ // calling with array of myType
…
}
Is there any example (code) for using such complex data in an OPC UA function call? And if so, is it perhaps possible to test this with the current version of UaExpert, or does it need to be implemented in client code?
Thanks in advance.
12:04, EEST
December 21, 2011
OfflineUsage of complex types is explained in this blog article.
I think we haven’t tested it with methods, though, but in principle it should work. The difficult part is to define the types the same way in the server and client.
Another option would be to define a separate array argument for each member of the struct, e.g.:
myMethod(int[], string[], double[])
I am afraid UaExpert nor the Java Client will not be able to write array typed arguments – at least not custom structure types.
1 Guest(s)

Log In
Register