Is there a more efficient way to write values to nodes? #759
-
Hello everyone! for node_data_change in list_of_nodes_data_changes:
some_node = self._opc_ua_server.get_node(node_data_change.node_id)
await some_node.write_value(node_data_change.new_variant_val) For example, this method of recording 20,000 values in a cycle can reach 1-2 seconds (also depends on the speed of the hardware), which is very long. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Had you take a look here? opcua-asyncio/asyncua/client/client.py Line 719 in a17138c Depending on how you stored stuff, you may be insipirated. ^^ |
Beta Was this translation helpful? Give feedback.
-
I do not think you can do more efficient than using write_attribute_value(). |
Beta Was this translation helpful? Give feedback.
Had you take a look here?
opcua-asyncio/asyncua/client/client.py
Line 719 in a17138c
Depending on how you stored stuff, you may be insipirated. ^^