Unnamed complex structure in complex structure
Posted: 31 Jul 2014, 14:02
Hello,
we're are looking for a way to define an unnamed complex structure under a defined complex structure. In other words we want to have a structure in a structure without to define the data type of the substructure by itself, e.g. as it is possible in XML schemas. Is this possible by using the ANSI C SDK or is it not supported by OPC UA at all?
We did try out the following data structure:
Thanks and greetz
smueller
we're are looking for a way to define an unnamed complex structure under a defined complex structure. In other words we want to have a structure in a structure without to define the data type of the substructure by itself, e.g. as it is possible in XML schemas. Is this possible by using the ANSI C SDK or is it not supported by OPC UA at all?
We did try out the following data structure:
Code: Select all
<opc:StructuredType BaseType="ua:ExtensionObject" Name="TestDataType">
<opc:Field TypeName="ua:ExtensionObject" Name="TestStruct">
<opc:StructuredType BaseType="ua:ExtensionObject">
<opc:Field TypeName="opc:String" Name="AxisName"/>
<opc:Field TypeName="opc:Double" Name="Position"/>
<opc:Field TypeName="opc:String" Name="Unit"/>
</opc:StructuredType>
</opc:Field>
</opc:StructuredType>
smueller