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

Method get_data_value

opcua/common/node.py:158–164  ·  view source on GitHub ↗

Get value of a node as a DataValue object. Only variables (and properties) have values. An exception will be generated for other node types. DataValue contain a variable value as a variant as well as server and source timestamps

(self)

Source from the content-addressed store, hash-verified

156 return result.Value.Value
157
158 def get_data_value(self):
159 """
160 Get value of a node as a DataValue object. Only variables (and properties) have values.
161 An exception will be generated for other node types.
162 DataValue contain a variable value as a variant as well as server and source timestamps
163 """
164 return self.get_attribute(ua.AttributeIds.Value)
165
166 def set_array_dimensions(self, value):
167 """

Callers 13

get_valueMethod · 0.95
value_to_etreeMethod · 0.80
__init__Method · 0.80
check_custom_typeFunction · 0.80
test_valueMethod · 0.80
test_set_valueMethod · 0.80
test_xml_importMethod · 0.80
test_xml_floatMethod · 0.80
test_xml_string_arrayMethod · 0.80
_test_xml_var_typeMethod · 0.80

Calls 1

get_attributeMethod · 0.95

Tested by 10

check_custom_typeFunction · 0.64
test_valueMethod · 0.64
test_set_valueMethod · 0.64
test_xml_importMethod · 0.64
test_xml_floatMethod · 0.64
test_xml_string_arrayMethod · 0.64
_test_xml_var_typeMethod · 0.64
test_xml_byteMethod · 0.64