Relative Content

Tag Archive for c#opc-uaopc

Opc UA Expert Value not shown in View

I am experiencing an issue with reading the value from UA Expert. Specifically, the value is not visible in the Data Access View, although it is accessible and clearly displayed in the Attribute tab.

Encoding and Decoding Custom OPC-UA DataTypes with UA-ModelCompiler

I am working on an OPC UA project where I’m managing custom DataTypes. I defined a complex object in UaModeler, and used UA-ModelCompiler tool to generate the model code in C#.
However, when I read from it using a OPC UA client, I’m unsure how the encoding and decoding of this custom DataType should be handled. It appears the data needs to be sent as a serialized ExtensionObject, however I couldn’t find much documentation on how exactly to encode the custom DataType to a byte array and wrap it with ExtensionObject.