Alarm Journal – Filter on Associated Data


Learn how to filter the Alarm Journal Table component on alarm's associated data. Using alarm filtering, you can define, search, and display the exact data you are interested in from the alarm history data.

Video recorded using: Ignition 7.7


(open in window)

[00:00] Just like the alarm status table, we can filter the alarm journal table based on associated data that we added to alarms. It's a great way of filtering these alarms out. If you recall from a previous lesson, on WriteableFloat1 tag, I added an alarm, where I added an associated data to that alarm called Group, and I gave it a value of Group A. So what I want to do here is actually filter all the alarms in the history for only the ones that have the associated data group of group A. So I'm not going to do that in the properties over here. Just like the alarm status, we're going to right click, and we're going to go down to the scripting area and use the extension function called filterAlarm to make this happen. I'm going to go ahead, enable that and for every alarm, it's going to show up and that's in that system where return True, if we want to show it, and False if we don't. So the first thing I want to do is actually get the group from the alarm I'm going to say group equals alarmEvent.get of the associated data called Group. And if the group is equal to Group A I want to return true. Else, if it's not Group A, I don't want to see it, so I'm going to return False. So essentially, just by putting that in there, I can now filter on the associated data. And we can add other filters here as well. This is really the simple one. I'm going to go ahead and press OK. And by default, it's not going to automatically show the filter here because this component does not pull. So you have to actually change the start to end date in order for it to bring back the events in that time period. So now if I go up here and I move my date range slightly, I'm only going to show now all of the alarms that has Group A. So it's very easy to filter on the associated data. The associated data is outside of the folder structure. It's outside the display path. It allows us to filter any way that we want. So we can look at alarms from a particular area of our plant, or for a certain set of our alarms.

You are editing this transcript.

Make any corrections to improve this transcript. We'll review any changes before posting them.


Share this video