Skip to main content
Version: 8.1

isAlarmActiveFiltered

This function is used by Ignition's Expression language.

Description​

Returns whether there are active alarms that match the provided criteria. It is more granular than isAlarmActive. The Tag path, alarm name, and display path all support wildcards ('*'). The min and max priority expect a number between 0 (diagnostic) and 4 (critical). The pollRate parameter is only applicable in the Client scope and is optional.

When calling this from the Gateway scope, the Tag Provider must be included in the path.

Syntax​

isAlarmActiveFiltered(tagPath, alarmName, displayPath, minPriority, maxPriority, allowCleared, allowAcked, allowShelved, [pollRate])

Parameters​

TypeParameterDescription
StringtagPathThe tag path to search for active alarms. Accepts the wildcard '*'.
StringalarmNameThe alarm name to search for active alarms. Accepts the wildcard '*'.
StringdisplayPathThe display path to search for active alarms. Accepts the wildcard '*'.
IntegerminPriorityThe minimum priority of alarms to accept. 0 is Diagnostic, 1 is Low, 2 is Medium, 3 is High, 4 is Critical.
IntegermaxPriorityThe maximum priority of alarms to accept. 0 is Diagnostic, 1 is Low, 2 is Medium, 3 is High, 4 is Critical.
BooleanallowClearedA flag that indicates whether to accept cleared alarms.
BooleanallowAckedA flag that indicates whether to accept acknowledged alarms.
BooleanallowShelvedA flag that indicates whether to accept shelved alarms.
IntegerpollRateThe poll rate of the function in milliseconds. Only applicable in the Client scope. [optional]

Results​

Boolean - True if there are active alarms, False if there are not.

Examples​

Code Snippet
isAlarmActiveFiltered("*", "*", "*", 4, 4, 0, 1, 0)  //when any critical alarm is active, even if acknowledged, then this expression returns True.