MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / set_array_dimensions

Method set_array_dimensions

opcua/common/node.py:166–172  ·  view source on GitHub ↗

Set attribute ArrayDimensions of node make sure it has the correct data type

(self, value)

Source from the content-addressed store, hash-verified

164 return self.get_attribute(ua.AttributeIds.Value)
165
166 def set_array_dimensions(self, value):
167 """
168 Set attribute ArrayDimensions of node
169 make sure it has the correct data type
170 """
171 v = ua.Variant(value, ua.VariantType.UInt32)
172 self.set_attribute(ua.AttributeIds.ArrayDimensions, ua.DataValue(v))
173
174 def get_array_dimensions(self):
175 """

Callers 2

server-enum.pyFile · 0.80

Calls 1

set_attributeMethod · 0.95

Tested by 1