NextAlarm
The NextAlarm
function returns the next alarm for a tag or source on or after a given time stamp.
Syntax
set AlarmObj = NextAlarm (source, condition, timestamp)
Example Code
The following example will get the next alarm based on the properties of the current alarm object.
Set AlarmObj = NextAlarm (AlarmObj.Source, AlarmObj.ConditionName,
DateAdd("s", 1, AlarmObj.Timestamp))