Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

Download the

Solution Example here:

solution AlarmsAreas.dbsln

Name: Logical Alarm Areas

.

Built with v10.

This example illustrates how to create and use hierarchical `AlarmAreas` in your application.

Software Version: 10.1



Summary

This solution example shows the many uses of AlarmAreas. Among other things, it is example demonstrates how to configure and visualize hierarchical alarm structures with AlarmAreas. It makes possible to enable, disable, acknowledge, count and filter alarms Alarms based on the Area they are associated with, making it easier to manage large projects.linked to, simplifying the management of complex solutions.

Image Added


Technical Information

This sample includes the following features:
- Annotation and alarm markers
- Pens group and multiple Y-axis scales
- Zoom, pan, and real-time update options

You can also refer to the TrendChart documentation to explore all available runtime properties and customization options.

Creating and Applying AlarmAreas

Technical Information

To create an AlarmArea, go to Alarms / Areas. It is possible to create SubAreas by clicking on selecting an existing AlarmArea and creating a new one inside of it. AfterwardsIn order to apply AlarmAreas, go to Alarms / Items configuration, right-click on the column titles and headers, enable the Area column, then edit it to specify which Area and assign each AlarmItem belongs to its corresponding Area by editing the column.

Active Alarms Count by Area

Each AlarmArea has maintains its own alarm counts, as well as count of active alarms and provides methods to acknowledge and or disable all Alarms connected to it. These fields can be associated with buttons to manage Alarmsassociated alarms. You can check these possibilities out by double-clicking this example’s components in Draw mode and looking at their Dynamics and text fields.link these functions to buttons for alarm management. To explore how it’s configured, double-click the buttons in the example using Draw mode and examine their Dynamics and Text properties.

Filter Alarms by Area

Additionally, Areas can be used to filter AlarmItems, making simplifying and organizing the visualization contents of AlarmViewers simpler and more organized. On Displays → Draw → . To do this, go to Displays / Draw / Modules, select an AlarmAreas component and place it on the desired display. Set the SelectedArea field to a text tag, and then apply it to the AlarmAreas through the display’s CodeBehind, like this:

Code Block
languagec#
public async void ApplyFilterButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
	    if(String.IsNullOrEmpty(@Tag.SelectedArea))
	 	        @Tag.AlarmFilter = "";
	    else
	 	        @Tag.AlarmFilter = @Alarm.Area[@Tag.SelectedArea].GetFilterGetFilterAsync();
}

This code

accesses

retrieves the Area selected by the user through the AlarmAreas component.

Then, method GetFilter returns text filtering

The GetFilterAsync method then generates a text filter that includes the selected Area and all of its SubAreas. This filter is

passed

assigned to the AlarmFilter text tag

AlarmFilter

, which is applied to the AlarmViewer by double-clicking on it in Draw mode and setting its Filter field to {Tag.AlarmFilter}.


Reference Information

Check out the Alarms Alarm Areas documentation to leverage this feature's potential and AlarmAreas Control for more information on the purpose and behavior of AlarmAreas.


In this section:

Page Tree
root@parent
spacesV10