XmlUaNodeFactoryManager
Moderator: uasdkcpp
-
- Sr. Member
- Posts: 14
- Joined: 02 Sep 2013, 15:27
XmlUaNodeFactoryManager
Are there any examples on the use of Type constructors using a XmlUaNodeFactoryManager instance?
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: XmlUaNodeFactoryManager
Hi,
Can you provide more details for your question?
Do you want to import OPC UA type nodes like ObjectTpyes or do you want to create instances of types based on generated code?
Best Regards,
Unified Automation Support Team
Can you provide more details for your question?
Do you want to import OPC UA type nodes like ObjectTpyes or do you want to create instances of types based on generated code?
Best Regards,
Unified Automation Support Team
-
- Sr. Member
- Posts: 14
- Joined: 02 Sep 2013, 15:27
Re: XmlUaNodeFactoryManager
We want to import OPC UA types based on external specifications, but without having to recompile our server
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: XmlUaNodeFactoryManager
In the documentation you can find the chapter "Tutorials for Server development" -> "C++ SDK Demo Server" -> "Loading Address Space from UANodeSet XML File". That's a good entry point to learn about XML import.
You can generate object types and instances with the UaModeler and export them to xml format. This xml file can be loaded into the server.
If you import OPC UA object types from an external specification using the xml file format that will work. But you still need to connect these in-memory-nodes to something in the real world. An good place to see how to do that is looking at
MyNodeManagerNodeSetXml and MyNodeManagerNodeSetXmlCreator in the C++ demoserver.
Best Regards
Unified Automation Support Team
You can generate object types and instances with the UaModeler and export them to xml format. This xml file can be loaded into the server.
If you import OPC UA object types from an external specification using the xml file format that will work. But you still need to connect these in-memory-nodes to something in the real world. An good place to see how to do that is looking at
MyNodeManagerNodeSetXml and MyNodeManagerNodeSetXmlCreator in the C++ demoserver.
Best Regards
Unified Automation Support Team