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: 1919
Currently Online:
18 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 731
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1