Description

The Tag historian binding type (which is only available for Dataset type properties), will run a query against the Tag history system.

Video recorded using: Ignition 7.7

Transcript

(open in window)

[00:00] The tag historian binding type that we have allows us to bring back history for tags we have logged in historian onto any component that has a dataset property. Here, for example, I have a spark line chart and a table component on my window. Both of these components have a data property that is a dataset. I combine that dataset property to tag history to bring back information that we've logged. In the spark line chart here, I can bring back the history for one tag, and to show it as a simple chart. I combine the data property here to tag history, which only shows up when you're binding a data set. I can then go and find an individual tag I want to look at. I can only drag in one tag here, so I'm going to take ramp0, drag it over to my selected historical tags so I can bring back the history for ramp0. At the bottom, I can specify the date range; either historical or realtime. Here, I'm going to do realtime, most recent, 60 seconds of data. I want to bring back the natural sample size, which means that if the data's logged every second, I get values every second. If it's logged every 10 seconds, I get every 10 seconds. At the bottom, I can specify if I want to just do it once or if I want to actually poll. Here I'm going to say poll every 30 seconds so I can get the most recent 60 seconds of data that's live on my screen for ramp0. As soon as I press OK, it brings back the history as you can see for ramp0. There is the information on the spark line chart. I can do the same thing on the table, except for I can actually bring back more than one tag at a time. If I go down to my data property, I combined that to tag history. Here I can select more than one. Let's go ahead and select a few of the tags. Drag them over here to the right-hand side. Come down here, specify a date range. Again, I can do historical or I can do realtime. If you do historical, you have to actually bind it to a start to end date that you have on the window. Realtime here, I'm just going to type in realtime, most recent, 60 seconds. Again, I'll do a natural sample size, and I'll do this case polling off. Go ahead and do it once. Soon as I press OK, I can see the history of those five tags with a timestamp here. Of course I can scroll through all that information to see what we've logged. The tag history binding type allows us to bring back this history. There's another lesson that we have in the tag historian course that allows us to see all the various settings there and what each of those settings means.

You are editing this transcript.

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