get data of OutputArgument Node #1439
-
Im fairly new to OPCUA, but I'm trying to read the value of an OutputArgument Node from a called method that just multiplies two numbers. How can I directly access/read the value of that OutputArgument node? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is the value. If you want to know how the datatype is named you can read it like this: node = client.get_node("ns=2;i=4")
# or if you just know the node of the method
meth_node = client.get_node("...")
node = await meth_node.get_child("OutputArgument")
args = await node.read_value()
print("Args")
for arg in args:
arg_node = client.get_node(arg.DataType)
display_name = await arg_node.read_display_name()
browse_name = await arg_node.read_browse_name()
print(f"{display_name}:{arg.ValueRank}") |
Beta Was this translation helpful? Give feedback.
This is not possible in opc ua.