How can I get the last (by time) occurred Unack and Active or Ack and Active alarm from
system.alarm.queryStatus function?
I want to display in the label the time and the text(name or label) only of the last alarm…
How can I get the last (by time) occurred Unack and Active or Ack and Active alarm from
system.alarm.queryStatus function?
I want to display in the label the time and the text(name or label) only of the last alarm…
results = system.dataset.sort(system.alarm.queryStatus(source=["YourSourceTagPath"]).getDataset(),3,False).getValueAt(0,2)
print results
That’s it!
Thank you.