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
String tagPath - The tag path to search for active alarms. Accepts the wildcard '*'.
String alarmName - The alarm name to search for active alarms. Accepts the wildcard '*'.
String displayPath - The display path to search for active alarms. Accepts the wildcard '*'.
Integer minPriority - The minimum priority of alarms to accept. 0 is Diagnostic, 1 is Low, 2 is Medium, 3 is High, 4 is Critical.
Integer maxPriority - The maximum priority of alarms to accept. 0 is Diagnostic, 1 is Low, 2 is Medium, 3 is High, 4 is Critical.
Boolean allowCleared - A flag that indicates whether to accept cleared alarms.
Boolean allowAcked - A flag that indicates whether to accept acknowledged alarms.
Boolean allowShelved - A flag that indicates whether to accept shelved alarms.
Integer pollRate - The 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​
isAlarmActiveFiltered("*", "*", "*", 4, 4, 0, 1, 0) //when any critical alarm is active, even if acknowledged, then this expression returns True.