Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Image updated. File renamed. Outdated attachments removed


Info

Download the Solution Example Here:

AlarmChangeMessage

AlarmHistoryFilter.dbsln


  • Solution Name:
AlarmChangeMessage
  • Alarm History Filter
  • Software Version:
  10.0.6
  • v10
  • Keywords:
  Alarm. Message. Runtime.
  • Alarms, Filters 

Summary

This solution example is represented in HTML5 and WPF modifies the Alarm Message during Runtime.demonstrates how to filter AlarmHistory data by applying start and end dates, as well as SQL statements, as AlarmViewer filters.

Image Added


Technical Information

In this example, the Message appears when Tag1 = 1 for Primary State, when Tag2 = 5 the Message changes to Alarm is Locked.

By default, AlarmViewers show online Alarms – that is, Alarms that have yet to be acknowledged and normalized. To view previously active Alarms, double-click the AlarmViewer in Draw mode and change the List checkbox to AlarmHistory. By default, this will show all of the alarms from the AlarmHistorian dataset, accessible via the Datasets → DBs table.

For better visualization, you can filter the AlarmHistory by dates or SQL queries. To do so, double-click the AlarmViewer and specify values for the History Interval and Filter fields. You can also link tags to these fields, to let the user decide which filters to apply, as this solution example demonstrates.


Reference Information

→ See AlarmViewer Control to learn more about AlarmViewers and related settings.

→ For more information on the databases FrameworX uses to preserve a solution’s history, check out Datasets DBs.


In this section:

Page Tree
root@parent
spacesV10

The definition of an AlarmItem has 3 mandatory fields: TagName, Condition and AlarmGroup. That means, the Tag value that will be evaluated, the alarm condition to be verified, and if there is an Alarm, which AlarmGroup will guide the tag processing behavior.

To create or modify AlarmItems: Go to Alarms → Items.

In order to apply custom action using .NET scripts, subscribe to notifications of Alarms and events. These notifications are typically used to send SMS or email warnings, execute custom calculations, add custom notification Messages or audio Alarms, text-to-speech audio Alarms, and to perform any kind of action defined by custom programming.

Select the method in the Notification Method column on Alarms → Groups.

The name of the method can vary; The important is the expected parameters.

Reference Information

For more information, access the CodeBehind of the solution's MainPage display.