FreeOpcUa / opcua-modeler

GUI to create OPC UA models and export them as XML
GNU General Public License v3.0
242 stars 89 forks source link

Error while creating new node under PublishSubscribe object #77

Open merlingeorge555 opened 5 years ago

merlingeorge555 commented 5 years ago

Hi,

I was trying to create a new information model for pubsub using opcua-modeler tool. I have created a new namespace and added reference nodeset (Opc.Ua.NodeSet2.Part14.xml) to create pubsub datatype object. After adding the reference, I created a new object of type PubSubConnectionType. When i try to save the file as xml, I get an error saying _base.UaError:Datatype must be a subtype of builtin types Node(NumericNodeId(i=19730)). Can anyone help me on creating a pubsub information model?

Thanks.

zerox1212 commented 5 years ago

I think this might be a byproduct of Part14 not being included in the standard address space at this time. Despite interest, there was no one to work on PubSub so it has not been merged. See https://github.com/FreeOpcUa/python-opcua/pull/289 .

My guess is the XML exporter code expects these UA types to be somewhere else and it isn't using your reference node set or something... would need to debug.