Good morning,
I need to implement an OpcUa server that handles data structures. I need to expose on the server some simple variables and some data structures. I have tried some free solution like LibUa or also the tial of Unified Automation sdk, but I didn't understand how to handle data structures.
Can you point me to available solutions or code examples? If possible I prefer .net framework languages.
Thanks in advance
Paolo
OpcUa Server
Moderator: uasdknet
- Support Team
- Hero Member
- Posts: 3064
- Joined: 18 Mar 2011, 15:09
Re: OpcUa Server
Hello Paolo,
There are two use cases:
1. The structured DataTypes are known at compile time.
2. The structured DataTypes are known at runtime.
If the structured DataTypes are known at compile time, you can use UaModeler to design the DataTypes and generate code for them. The generated code contains .NET classes that the sdk can use to directly encode and decode. Please see the UaModeler HowTos
http://documentation.unified-automation.com/uamodeler/1.6.5/html/net.html
If the DataTypes are not known at compile time, you can use DataTypeManager on client side. Using this class the sdk can get the information about
the structured DataType from the server addressspace. On server side you can use the SchemaBuilder to create the structured DataTypes dynamically.
Please see
There are two use cases:
1. The structured DataTypes are known at compile time.
2. The structured DataTypes are known at runtime.
If the structured DataTypes are known at compile time, you can use UaModeler to design the DataTypes and generate code for them. The generated code contains .NET classes that the sdk can use to directly encode and decode. Please see the UaModeler HowTos
http://documentation.unified-automation.com/uamodeler/1.6.5/html/net.html
If the DataTypes are not known at compile time, you can use DataTypeManager on client side. Using this class the sdk can get the information about
the structured DataType from the server addressspace. On server side you can use the SchemaBuilder to create the structured DataTypes dynamically.
Please see
- http://documentation.unified-automation.com/uasdkdotnet/3.0.7/html/L3ClientTutExample28.html
- File DemoNodeManager.GenericDataTypes.cs in DemoServer example.
Best regards
Unified Automation Support Team
Unified Automation Support Team