OPC UA Example Device: Setting Tag Quality

I am programming a Driver Module with the ignition SDK. I create UaFolder Nodes that contain my UaVariableNodes, i want to change the Quality of the tags manually to Bad/Good. Is there any existing way how i can implement this to my java code?

Quality is wrapped into the DataValue you set on the items.

thanks for you answer, so how do i set the Quality? with an StatusCode for my UaVariableNode? May you provide example code please?

I use the two-arg constructor shown here:

https://javadoc.io/static/org.eclipse.milo/stack-core/0.5.2/org/eclipse/milo/opcua/stack/core/types/builtin/DataValue.html

(You cannot set the quality on the node, I don't think. You just supply a new DataValue with the desired quality.)

2 Likes