Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
OPC UA method call with complex data
May 8, 2014
8:11, EEST
Avatar
m.papendick
New Member
Members
Forum Posts: 1
Member Since:
May 8, 2014
sp_UserOfflineSmall Offline

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.

May 8, 2014
12:04, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1029
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 33
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6521
Newest Members:
AlinarisiN, Jorsiz, wilfredoforeman, ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1047, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0
Administrators: admin: 1