Configure the NewAlarm event
- Last UpdatedSep 19, 2024
- 1 minute read
You can configure the NewAlarm event to execute an Industrial graphic script whenever a new alarm occurs.
You can control the trigger behavior with the NewAlarmEventMode property. For more information, see NewAlarmEventMode property.
To configure the NewAlarm event
-
Double-click the Alarm Control. The Edit Animations dialog box appears.
-
Click Event. The Event page appears.
-
In the Event list, click NewAlarm.

-
In the script area, type the script you want to execute when a new alarm occurs, for example:
AlertIcon.Visible = true;
-
You must also set the NewAlarmEventMode property to 1 or 2 to enable the NewAlarm event trigger. Do the following:
-
On the Special menu, click Scripts. The Edit Scripts dialog box appears.
-
Make sure Trigger type is set to On Show.
-
In the script area, type the following:
AlarmClient1.NewAlarmEventMode = 1;
-
If you want the script to be executed every time a new alarm occurs, set the NewAlarmEventMode property to 2 instead.
-
Click OK.
-