Set Calculation to Severity of Previous Alarm

This example sets the result of the calculation to the severity of the previous alarm for source Simulation00001_ALM with a condition of Simulated.

Code Example

Set AlarmObj = PreviousAlarm("Simulation00001_ALM", "Simulated", "Now")
If Not(AlarmObj Is Nothing) Then
   Result = AlarmObj.Severity
Else
   Result = 0
End If