Replies: 2 comments 3 replies
-
internally the array size is infinite in ua. But maybe there is an extra node property. Where do you find the size? |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://reference.opcfoundation.org/v104/Core/docs/Part3/5.6.2/ opcua-asyncio/asyncua/ua/uaprotocol_auto.py Line 3278 in 12c0e7a field = ua.StructureField()
field.Name = <name>
field.IsOptional = False
field.Description = ua.LocalizedText(text="TEST")
field.DataType = ua.NodeId(<dtype>)
field.ValueRank = ua.ValueRank.OneOrMoreDimensions
field.ArrayDimensions = [<arraylength>] |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
i am a bit confused in what way i can set the length of an Array when i create a custom DataType with help DataTypeDeffinitions on a Server side. When I use this line- I create a structure field that is an array but the length is not defined.
new_struct_field(field_name, ua_field[0], array=True)
When I connect to the structure, that includes mentioned above field, with help UaExpert I can select the ArraySize manually but i want to predefine it when i create a custom DataType.
Thanks in Advance!
Andrey
Beta Was this translation helpful? Give feedback.
All reactions