Alarm Filtering

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
KurtisR
Posts: 6
Joined: Mon Aug 29, 2011 11:20 pm

Alarm Filtering

Post 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.

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Alarm Filtering

Post 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 10752 times
Then enable/disable them using the "Visible" dynamic under the "Dynamics" tab.
vis_dynamic.JPG
vis_dynamic.JPG (25.65 KiB) Viewed 10752 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;
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

KurtisR
Posts: 6
Joined: Mon Aug 29, 2011 11:20 pm

Re: Alarm Filtering

Post 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.

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: Alarm Filtering

Post 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 10751 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

jmsmoreira
Posts: 28
Joined: Mon Apr 23, 2012 7:03 am

Re: Alarm Filtering

Post 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);

Post Reply