Hello There,
Is there anyway to pull the alarm history (i.e something like an array of ActiveTime’s) for a given tag path?
Similar to system.tag.read(/x/x/x/x/x/Alarms.LastActiveTime)
Thanks
Hello There,
Is there anyway to pull the alarm history (i.e something like an array of ActiveTime’s) for a given tag path?
Similar to system.tag.read(/x/x/x/x/x/Alarms.LastActiveTime)
Thanks
You may use the system.alarm.queryJournal function to accomplish what you’re looking for.
For example,
system.alarm.queryJournal(startDate, endDate, journalName, source = “Folder/TagPath”)
You can use the getDataset() on the result to convert to a dataset, and then access the EventTime column to find the times at which the events occcurred.
https://docs.inductiveautomation.com/display/DOC80/system.alarm.queryJournal