Page 1 of 1

Alarm Filtering

Posted: Mon Aug 29, 2011 11:28 pm
by KurtisR
I am wondering if it is possible to filter the alarms shown at run time?

I have 4 Alarm groups defined in the Alarm server. Basically I would like to either choose my alarm group from a drop down box and have the selection filtered to the alarm viewer or cycle through the available alarm groups through touching a single button.

I have been trying to use the .FilterAlarmView method but I am struggling with the List parameter. I am not sure how to feed the Alarm groups to this method.

Any info on filtering the Alarms at run time (besides the FilterAlarmDialog window) would be appreciated.

Thank you.

Re: Alarm Filtering

Posted: Tue Aug 30, 2011 10:01 am
by Ron L.
I'm assuming you have disabled the "Filter" button that defaults as showing on the AlarmViewer.

To work around this, I would create 4 AlarmViewers configured with different filter options.
filter_settings.JPG
filter_settings.JPG (38.03 KiB) Viewed 10747 times
Then enable/disable them using the "Visible" dynamic under the "Dynamics" tab.
vis_dynamic.JPG
vis_dynamic.JPG (25.65 KiB) Viewed 10747 times
Once you've got this in place, you'll just need to change the value of a tag to change AlarmViewers.

Code: Select all

Globals.Tags.CurrentAlarmView.Value = 2;

Re: Alarm Filtering

Posted: Tue Aug 30, 2011 10:19 am
by KurtisR
Thank you for the response Loyd.

I understand your solution - basically have a stack of alarm viewers and make them visible through the CurrentAlarmView Tag.

I will give this is try and see how it works. I am going to also have to select the correct AlarmViewer based on this tag value for the Acknowledge & Clear all buttons

Thanks again for your response.

Re: Alarm Filtering

Posted: Tue Aug 30, 2011 10:31 am
by Ron L.
Yes, you can use the Object Browser if you need to select an Alarm Viewer that is hidden behind another object.
object_browser.JPG
object_browser.JPG (28.08 KiB) Viewed 10746 times

Re: Alarm Filtering

Posted: Wed Jul 04, 2012 6:32 am
by jmsmoreira
KurtisR wrote:I am wondering if it is possible to filter the alarms shown at run time?

I have 4 Alarm groups defined in the Alarm server. Basically I would like to either choose my alarm group from a drop down box and have the selection filtered to the alarm viewer or cycle through the available alarm groups through touching a single button.

I have been trying to use the .FilterAlarmView method but I am struggling with the List parameter. I am not sure how to feed the Alarm groups to this method.

Any info on filtering the Alarms at run time (besides the FilterAlarmDialog window) would be appreciated.

Thank you.


It might be too late but here's the way of handling the List parameter:


List<string> alarmlist = new List<string>();
alarmlist.Add("example"); (example is the name of the group to be shown)

AlarmViewer1.FilterAlarmView(true,true,true,false,lista);