Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_TopicIcon
Tridimensional array of bytes and bidimensional array of Double
February 11, 2020
9:37, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

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

February 11, 2020
10:37, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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

February 11, 2020
11:42, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

Hello Matti,
first of all thank you very much for your fast reply.
I’m using the UaModeler generated XML code with the Codegen of Prosys Java SDK 2.1.2-478 version.

Do you think that this version is obsolete and could be the reason of my problem?

Cheers.
Alessandro

February 11, 2020
12:35, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello Alessandro,

Codegen of OPC UA SDK for Java 2.x.x doesn’t support more than one dimensional arrays. Please consider updating to the latest version of the OPC UA SDK for Java, which is version 4.2.0-955.

BR,

Matti

February 13, 2020
10:34, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

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

February 13, 2020
14:05, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

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

February 13, 2020
15:44, EET
Avatar
agrillo
Member
Members
Forum Posts: 22
Member Since:
June 28, 2016
sp_UserOfflineSmall Offline

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

February 13, 2020
16:14, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 346
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello Alessandro,

I’m glad to hear the beta build is working as you wanted. We’re hoping to release the new version of the SDK by the end of February or early March, but I can’t give you any guarantee on the exact time window of the release.

BR,

Matti

Forum Timezone: Europe/Helsinki

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, travistimmons

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1027, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1