PreviousAlarm
The PreviousAlarm
function returns the previous alarm for a tag or source on or before a given timestamp.
Syntax
set AlarmObj = PreviousAlarm (source, condition, timestamp)
Example Code
The following example will get the previous alarm based on the properties of the current alarm object.
Set AlarmObj = NextAlarm (AlarmObj.Source, AlarmObj.ConditionName, AlarmObj.Timestamp)