Adding to a Table when tags change

I have a pop-up window with a power table that I want to add entries to when certain tags change. I have 12 tags that I am controlling values for on a separate page, and I want to be able to track their value changes in one table. Right now I have 12 separate small tables, one tracking each tag, and it works but it’s messy and I’m sure there’s a better way. Is there some way to script to a table to have it add entries for every time one of my tags changes? I haven’t been able to figure it out on my own yet. Thank you!

How are you tracking the value changes? If you are using the tag historian then you can bind the tables data property to a tag history binding.

https://www.inductiveuniversity.com/video/tag-historian-binding/7.9
https://docs.inductiveautomation.com/display/DOC79/Tag+History+Binding

1 Like

IMO, I’d use transaction groups to put them all into one database table, then pull out the data you need back out. One table to rule them all…

1 Like

I’ve tried using your suggestions since I am tracking the changes with a tag historian and I’m getting an error message when I try to bind my tags. I’ve attached screenshots of the binding and the error message, if you wouldn’t mind looking. Is there something obvious I’m missing?

It looks like a problem with the way you have your indirection set up. If you are just going to be looking at the same 12 tags all the time I would suggest getting rid of the indirection and using the Available Historical Tags tree on the left to drag and drop the 12 tags onto the Selected Historical Tags. I think you might also want to change your aggregation mode to closest value, but that it is not the cause of the error.

https://docs.inductiveautomation.com/display/DOC79/Sample+Size+and+Aggregation+Mode

1 Like