18:10, EEST
January 30, 2014
Hi,
I am searching for example(s) how to read ExtensionObject but not in the case when the structured DataTypes are well known to the client, i.e. client can decode the binaries. I found this case in example https://www.prosysopc.com/blog/using-complex-datatypes/ but I am afraid it is not useful for my client which doesn’t know anything about server side data types.
Do you have example how to read custom data type by using encoding information available at the OPC UA server address space? For example in uaservercpp there is a type Vector (X, Y, Z). Are there some helper classes in Prosys SDK which can make easier r/w to such node?
I spotted in docs some classes like DataTypeDescriptionType but don’t have idea how to begin?
Best regards,
jev
PS
13
attribute: Value
Node: ns=2;s=Demo.Static.Scalar.Vector.Value | Status: GOOD (0x00000000) “” | Value: (Vector)org.opcfoundation.ua.builtintypes.ExtensionObject@bbd6329f | ServerTimestamp: 2016 May 12 (CEST) 17:08:59.062 | SourceTimestamp: 2016 May 11 (CEST) 12:25:02.657
18:45, EEST
December 21, 2011
17:57, EET
December 6, 2016
12:54, EET
April 3, 2012
14:18, EET
December 6, 2016
15:13, EET
April 3, 2012
A rough estimate for 2.3 is start of February 2017, however, it’s too early to promise anything right now.
I suppose I should note that this feature is not on very high priority as the specification 1.04 (which is draft / not yet released) will contain a new way (most likely new attribute) to describe custom structure meta directly via addressspace/ua types, which will effectively replace the datadictionary system.
Also our understanding is that most of the customers can use codegen for custom structures.
12:10, EEST
August 18, 2017
Hi all,
Is there any update regarding this? Although codegen is a very nice feature, it is not very convenient when exploring unkown server (which is one of the cool features of OPC UA)
I tried your stack with some custom very simple Structure (of DataType) that I modeled in UaExpert. Then I tried to read it and fill some Variable with my DataType but I always get some encoding error, even with codegen. I believe that the ‘
‘ character is somehow responsible here.
Best,
11:02, EEST
April 3, 2012
Currently what I mentioned with 2.3 in above posts was changed to be 3.0. An issue regarding handing diagnostics came up with the compliance testing and the result became 2.3.
There were some bugs regarding loading the typedictionarys from the Nodeset XMLs, they are fixed by the stack that comes with SDK 2.3.2 (https://downloads.prosysopc.com/opcua/release_notes2.3.2-781.html).
I hope we can make a public beta of 3.0 soon and release it before the end of 2017.
Currently in the development tree (for 3.0) we have a TypeDictionary class that takes a UaClient and can decode given ExtensionObjects to DynamicStructures, which does act like a map. However it is something you have to specifically create and call at the moment.
– Bjarne
Most Users Ever Online: 1919
Currently Online:
24 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25ZofModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1