Tag history for Strings

I have a string tag with history turned on, for the product recipe name. I would like to be able to tell when that value was changed (ie a new recipe loaded), but am having a hard time trying to figure out how to access the history for it. Any advice would be greatly appreciated.

I recommend that you get a feel for the Historian by creating a view with a table. Then bind props.data using a Tag History binding on the recipe name.
Set Query Mode: AsStored.
Set Time Range: Historical
Pick start and end dates.

That should reveal the raw data in the Historian. You can proceed from there.

Thanks Transistor, that worked perfect for Perspective, but not for Vision. When I go to choose the tag, only the numerical ones are available to be selected. Any thoughts on that?

Hmmmph! That's interesting!

If you want to create your own tag retrieval Ignition Database Table Reference - Ignition User Manual 8.1 - Ignition Documentation tells you the structure of the data tables. It's a bit tricky though as the data will be spread through multiple tables depending on your auto-pruning setup. I would recommend creating your own database for the recipe tag history.

1 Like