AddEvent
The AddEvent method will create a new event with the current alarm properties.
Syntax
AlarmObj.NewAlarm source, tag, time stamp
Example Code
The following example creates a new event for the Simulation00001 tag on Simulation source with a severity of 50, a message of Test Message, and the current time.
Set AlarmObj = new Alarm
AlarmObj.Severity = 50
AlarmObj.Message = "Test Message"
AlarmObj.AddEvent "Simulation", "Simulation00001", "Now"