Skip to content

How to create Variant Array #1416

Answered by AndreasHeine
simondarius asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simondarius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants