Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Apps, Widgets, and Controls

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

  1. Double-click the Alarm Control. The Edit Animations dialog box appears.

  2. Click Event. The Event page appears.

  3. In the Event list, click NewAlarm.

  4. In the script area, type the script you want to execute when a new alarm occurs, for example:

    AlertIcon.Visible = true;

  5. You must also set the NewAlarmEventMode property to 1 or 2 to enable the NewAlarm event trigger. Do the following:

    1. On the Special menu, click Scripts. The Edit Scripts dialog box appears.

    2. Make sure Trigger type is set to On Show.

    3. In the script area, type the following:

      AlarmClient1.NewAlarmEventMode = 1;

    4. If you want the script to be executed every time a new alarm occurs, set the NewAlarmEventMode property to 2 instead.

    5. Click OK.

Related Links
TitleResults for “How to create a CRG?”Also Available in