LESSON

Alarm Journal – Filter on Date Range

Description

Learn how to filter the alarm history data that has been stored in Alarm Journal Table component for all alarms within a specific start date and end date.

Video recorded using: Ignition 7.9

Transcript

(open in window)

[00:00] Because the Alarm Journal does not automatically update, it's important to set a binding on the Start and End Date properties of the component. In addition to helping you update the component, it also helps to filter down the number of events you're seeing by date and time. The easiest way to do this is using Ignition's built-in Calendar components, specifically the Date Range. I'm going to go ahead and drag one on the screen, and I'm going to make it a little bit bigger so it's easier to see. If we click back to our Journal component we can then go to the Binding icon for the Start Date property of the component and go to the Property Binding and bind it to the Date Range start date. We can then do the same thing for the End Date property of the Alarm Journal component, except this time binding it to the Date Ranges End Date property. When I finish setting up the binding you may have noticed the Alarm Journal component update, this is because by setting up the binding I changed the date of those Start and End Date properties, thereby forcing the Alarm Journal component to update itself. Right now, because my Date Range is so large I'm pulling in a large number of Alarm Events, however, if I were to put the designer into Preview Mode, I can then zoom in on my Date Range component and trim down the amount of time that I'm looking at. By doing this we're going to severely limit the number of events coming in and able to more clearly see what's going on in our Alarm Journal. As you can see, I'm now looking at a significantly lower number of events. Tools like the Date Range component give you finer control over the events that are pulled back from the Alarm Journal tables in the database. This allows you to get a much clearer picture of your complete alarm history. However it's important to note that using the Calendar components aren't the only way to set Date Times on the Alarm Journal component. You can set up tag bindings to Date Time tags that receive their value from somewhere else, or you can even use an Expression Binding, using the Expression language built-in Date-Time functions to set a date and time for those properties.

You are editing this transcript.

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

close

Share this video