9:37, EET
June 28, 2016
Hello,
I need to instantiate 2 variables in a new object using Unified Automation UaModeler: a triple array of bytes (byte[][][]) and a double array of Double (Double[][]), but I can’t generate them.
I selected “3Dimensions” for the triple array and “2Dimensions” for the double array in the field “ValueRank”, but the generated code creates scalar variables in both cases.
I also posted this topic in Unified Automation forum, by I hadn’t any reply.
Any suggestions?
Many thanks in advance.
Cheers.
Alessandro
10:37, EET
Moderators
February 11, 2020
Hello Alessandro,
Since you are asking this question on the OPC UA SDK for Java forum, could you please verify that you are trying to use the generated code with the OPC UA SDK for Java? The XML files generated by UaModeler can be used to generate Java code with the Codegen of Java SDK. This code has Variables with correct ValueRanks.
BR,
Matti
11:42, EET
June 28, 2016
12:35, EET
Moderators
February 11, 2020
10:34, EET
June 28, 2016
Hello Matti,
as you suggested, I tried to update my OPC UA SDK to the latest version (temporarily in evaluation mode).
Now I can create multi-dimensional variables, but I can’t use multi-dimensional arrays as method arguments, which are very important for my project.
In fact, if I try to generate the Java code with such type of arguments (for example a 2-dimensions array), obtain this error message: “Only scalar and onedimensional method arguments are supported at the moment. The codegen does not support valuerank: 2”.
Do you think there will be an update of the generator version, or is there another way to get around this?
Many thanks and many greetings
Alessandro
14:05, EET
Moderators
February 11, 2020
Hello Alessandro,
Thanks for pointing out this issue. Support for Methods with multi-dimensional array arguments has now been added to the latest beta build of the SDK. Please contact uajava-support@prosysopc.com if you want to try this build.
BR,
Matti
15:44, EET
June 28, 2016
Hello Matt,
I downloaded the latest beta build of the SDK that you kindly sent me, I tried it and now it’s possible to use multidimensional arrays as method parameters as I wanted, and this is an excellent news!!!
Now I will speak with my administration to discuss about the purchase of this new version, but I believe that I will still have to wait for the new stable release. How long do you think it will pass for it?
Anyway I’ll keep you informed about our decision, in the meantime, thank you very much for the great help you gave me.
Best regards,
Alessandro
Most Users Ever Online: 1919
Currently Online:
51 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: 739
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6453
Newest Members:
shaylamaggard4, rickyjuarez140, jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmonsModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1027, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1