I am running Perspective, 8.1.19. Looking to get the status of my OPC UA devices via a scripting so I can put it in a customer dashboard. I can get a listing of the device names easily enough using a script like this -
devices = system.opc.browseServer(opcServer, nodeId)
for device in devices:
print device.getDisplayName()
but can't find a way to get the status of each of these devices (connected, connecting, etc.). Has anyone done this before?
When I look in the tag browser, I do see System - > Gateway -> OPC ->Connections but I don't see devices listed here in the tags. I am looking to display the same information.
Just from the output of .listDevices(). The device itself can't give that information because its code isn't running at all when disabled, and therefore cannot respond to such a request.