Topic RSSStructure to java Object
May 14, 2020
11:36, EEST
11:36, EEST
marttin
Member
Members
Forum Posts: 10
Member Since:
March 20, 2019
March 20, 2019
OfflineHow to convert a structure loaded as:
Structure customStructure = (Structure) opcClient.readValue ("ns = 6; s = :: AsGlobalPV: gASystem"). GetValue (). GetValue ();
On java java object?
Exmaple field in structure
Field name Description value: Test
Field name Name value: Test
Field name Location value: Test
Field name FwVersion value: 0
Field name Name value: Test
Field name Location value: Test
Field name FwVersion value: 0
Thanks
May 14, 2020
13:36, EEST
13:36, EEST
Bjarne Boström
Moderator
Moderators
Forum Posts: 1068
Member Since:
April 3, 2012
April 3, 2012
OfflineHi,
I’m assuming the latest SDK version, i.e. 4.3.0 as of writing this.
If you have the NodeSet2 XML for the model in question that defines the Structure DataType you can use the codegen included with the SDK to generate proper equivalent java classes (see the “Prosys_OPC_UA_SDK_for_Java_Codegen_Manual” within the ‘codegen’ folder of the SDK zip). Otherwise you can use the dynamic handling (note that this works for all Structures) as explained in e.g. https://forum.prosysopc.com/fo…..ated-code/.
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 90
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_WanderleiModerators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1
© Simple:Press —

Log In
Register