Topic RSS9:37, EET
June 28, 2016
OfflineHello,
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
OfflineHello 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
12:35, EET
Moderators
February 11, 2020
Offline10:34, EET
June 28, 2016
OfflineHello 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
OfflineHello 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
OfflineHello 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
1 Guest(s)

Log In
Register