NewAlarm
The NewAlarm
method will create a new alarm, based on the current alarm object properties.
Syntax
AlarmObj.NewAlarm source, condition, tag, time stamp
Example Code
The following example creates a new alarm for the Simulation00001
tag on Simulation
source with a severity of 50
, a condition of Low Fluid Levels
, and the current time.
Set AlarmObj = new Alarm
AlarmObj.Severity = 50
AlarmObj.Message = "SomeMsg"
AlarmObj.NewAlarm "Simulation", "Low Fluid Levels", "Simulation00001", "Now"