8:11, EEST
May 8, 2014
Hello,
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
Usage 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.
Most Users Ever Online: 518
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
hbrackel: 135
pramanj: 86
Francesco Zambon: 81
ibrahim: 75
rocket science: 75
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
TimK: 41
Member Stats:
Guest Posters: 0
Members: 708
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1465
Posts: 6252
Newest Members:
christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18lModerators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5
Administrators: admin: 1