How to create Variant Array #1416
Answered
by
AndreasHeine
simondarius
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
AndreasHeine
Sep 1, 2023
Replies: 1 comment
-
dv = ua.DataValue(ua.Variant([200.0, 100.0], ua.VariantType.Double)) in opcua variables and properties containing a datavalue in the value attribute of a node which containes a variant. a variant is the value + the datatype (varianttype) + information about if its an array or not and if hints about size aswell https://github.com/AndreasHeine/opcua-tutorial/blob/main/client/write.py |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simondarius
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dv = ua.DataValue(ua.Variant([200.0, 100.0], ua.VariantType.Double))
in opcua variables and properties containing a datavalue in the value attribute of a node which containes a variant. a variant is the value + the datatype (varianttype) + information about if its an array or not and if hints about size aswell
https://github.com/AndreasHeine/opcua-tutorial/blob/main/client/write.py