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.
Alarm Filtering
Re: Alarm Filtering
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.
Then enable/disable them using the "Visible" dynamic under the "Dynamics" tab.
Once you've got this in place, you'll just need to change the value of a tag to change AlarmViewers.
To work around this, I would create 4 AlarmViewers configured with different filter options.
Then enable/disable them using the "Visible" dynamic under the "Dynamics" tab.
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
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Re: Alarm Filtering
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.
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
Yes, you can use the Object Browser if you need to select an Alarm Viewer that is hidden behind another object.
Best Regards,
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
-
- Posts: 28
- Joined: Mon Apr 23, 2012 7:03 am
Re: Alarm Filtering
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);