AlarmHornSilence Subroutine

Silences the alarm horn.

Syntax

AlarmHornSilence ([intErrorMode])

Properties

The AlarmHornSilence subroutine syntax has this part:

Part

Description

intErrorMode

Integer. (Optional). The error mode.
0 (default) – Errors are displayed in the form of a message box.

1 – Errors are not handled so that they can be handled in the calling routine.

2 – Errors are dispatched to the alarm destinations using SendOperatorMessage.

Remarks

The alarm horn must be enabled for this to work. If you call this routine and the alarm horn is disabled, no error will be reported.

If a new alarm comes in after this routine is called, the alarm horn will sound again. When alarms come in at a rapid rate, it may seem as though the AlarmHornSilence subroutine is not working because the new alarms keep retriggering the horn.

 

Example