Filter

You can animate the Filter property of an embedded Alarms List so that a filter is applied to the Alarms List. This creates a criteria for the Alarms List so that it can only display those alarms that are a specific category, state, or belong to specific items or are in a defined severity range (see Filter an Embedded Alarms List).

To animate the Filter property of an embedded Alarms List, you need to use the following syntax:

<filter1>="<value1>"&<filter2>="<value2>"


Where:

Additional filters and values can be included by using the &. For example, <filter 3>="<value3>"&<filter4>="<value4>" and so on.

As long as the source of the Filter animation is a string value and uses the appropriate syntax, the Alarms List animation will be valid. So you can use registry settings to store different filters for an Alarms List, then use buttons to toggle the filters that are applied.

Further Information

Alarm Filter Syntax: see Alarm Filter String Syntax in the ClearSCADA Guide to Alarms.

Example 1 - Filter by Point, Group, and Severity

The following entry filters the embedded Alarms List so that it only shows alarms for a point named 'AI1' that is stored in a Group named 'Main Site'. The Alarms List only includes alarms that are within the severity range 200-800 (the meaning of these values is defined in the server configuration - see Alarm and Event Severities in the ClearSCADA Guide to Server Administration).

'Area="Main Site"&Source="AI1"&MinSeverity="200"&MaxSeverity="800"'

Example 2 - Apply Different Filters by Selecting a Button

In this example, the Mimic contains an Alarms List that displays alarms of every state by default. The Mimic also contains three buttons: Critical Severity, High Severity, and All Alarm States. These buttons are configured to use registry pick actions so that when selected, they change the filter that is applied to the Alarms List (so that the Alarms List shows only critical alarms, only high alarms, and alarms of every state respectively).

The embedded Alarms List has a Filter animation with this configuration:

REGISTRY('Severity', '')

This sets the Filter property of the Alarms List to use the filter that is contained in the registry setting named Severity. The Severity registry setting is written when one of the Mimic's buttons is selected.

The Mimic's buttons are configured as follows:

  • Critical Severity—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="1000"&MaxSeverity="1000".
  • High Severity—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="667"&MaxSeverity="999".
  • All Alarm States—Configured to have a registry pick action with these settings: Name=Severity, Type=String, Value=MinSeverity="1"&MaxSeverity="1000".

When the Mimic is displayed in Run Mode, the Alarms List will respond to the buttons. When the Critical Severity button is selected, the Severity registry value has the following value written to it: MinSeverity="1000"&MaxSeverity="1000". As the source of the Filter animation for the Alarms List is the Severity registry value, the Alarms List is filtered to show only critical alarms.

Similarly, when the High Severity button is selected, the value MinSeverity="667"&MaxSeverity="999" is written to the Severity registry and so the Alarms List only shows High severity alarms.

When the All Alarm States button is selected, the value MinSeverity="1"&MaxSeverity="1000" is written to the Severity registry and the Alarms List shows alarms of every state.

The registry values are usually stored in the
HKEY_CURRENT_USER\Software\Schneider Electric\ClearSCADA\ViewX/Mimics key in the registry on your client PC.


Disclaimer

ClearSCADA 2017 R2