15:31, EET
August 18, 2017
Hi,
I am trying to make a subtype of a custome type:
Type
– someproperty
-SubType
– sameProperty overriten
In UaExpert, it is possible to tick a case to override parent’s variables. Is this just a convenience or part of OPC UA? Do you have similar mechanism in your stack? If not, should I just create a child node with the same name?
Thanks for your help
17:02, EET
April 3, 2012
Hi,
I’m not exactly sure what is the question here. If you can clarify the exact end goal you are trying to archive with the SDK, it might be easier to answer.
I assume you are meaning UaModeler instead of UaExpert, since it fits more to the description you gave.
In general the UaModeler is used to create information models, therefore the question that does the SDK have similar function is not valid as the two do different things.
This mechanism is a part of OPC UA, please see the specification (v.1.03, Part 4 section 6.3 and more specifically section 6.3.3.3 Overriding InstanceDeclarations, note that there are some limitations on what exactly you can override and how, e.g. DataTypes can be only subtypes etc. it is quite similar as object oriented programming languages)
The information model is exported as NodeSet2 XML format from the UaModeler and used as input for our code generator, which creates specific overloads for the type nodes. Those types are then registered in the SDK code and the model XML is loaded. Then you can use NodeManagerUaNode’s createInstance methods to create instances of these types.
– Bjarne
P.S. in case you are doing the types by hand, you need to create the node with the same BrowseName (both namespace index and name parts) as in the supertype. Generally the UaModeler->codegen->register types->load model->NodeManagerUaNode.createInstance/NodeBuilder is recommended if possible.
Most Users Ever Online: 1919
Currently Online:
19 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: 729
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech KubalaModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1