# Historical Tag Recording Too Many Data Points

**URL:** <https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 14, 2022, 5:14pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037 "2022-01-14T17:14:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnoeldner](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pnoeldner](https://forum.inductiveautomation.com/u/pnoeldner)\
**Post date:** [January 14, 2022, 5:14pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/1 "2022-01-14T17:14:18Z")

</div>

Gateway: Ignition Edge 8.1.12  
Application: Perspective

The customer gutted an old system to set up a small test plant. There is no store and forward being used to a central server.

I have tags in the PLC that are only updating every hour on the hour (every o’clock). The customer is using the AdHocTrends chart to export data every day for personal logging purposes. One would expect the tags to record once every hour for a total of 24 data point a day. What is actually happening is multiple data points every hour. This requires a little more manual manipulation of the data the customer would prefer not to have to do.

The three tags in question are set up the same way in the designer. Am I not setting up the historical settings for these tags correctly, or is there a setting somewhere else that I am missing? The tags seem to record every 5 mins, but it’s not exact or the same every time. Changing minimum time between samples to something like 30 mins does not seem to affect the tag historization either.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c364605764c0fd6f7cf6dbe036129c80cda75159.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5b69e8c71665dd155f651d49e687fd550d4eeda9.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 14, 2022, 5:20pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/2 "2022-01-14T17:20:45Z")

</div>

Please show the history binding that is generating the data table. Ignition interpolates data to make it appear like continuous, periodic readings.

---

<div class="post-metadata">

**Author:** ![pnoeldner](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pnoeldner](https://forum.inductiveautomation.com/u/pnoeldner)\
**Post date:** [January 14, 2022, 5:39pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/3 "2022-01-14T17:39:41Z")

</div>

The AdHocTrends in the Ignition Exchange just uses the built in Powerchart

---

<div class="post-metadata">

**Author:** ![pnoeldner](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pnoeldner](https://forum.inductiveautomation.com/u/pnoeldner)\
**Post date:** [January 14, 2022, 9:00pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/4 "2022-01-14T21:00:10Z")

</div>

@Transistor’s reply sent down the path to a solution for what the customer wanted. I ended up using a Table and custom scripting to combine three tag history queries into one dataset to fill a table. Then a button to be able to download the table data to a csv file.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 14, 2022, 10:09pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/5 "2022-01-14T22:09:19Z")

</div>

Good! Don’t forget to mark one of the answers as “Solution”.

---

<div class="post-metadata">

**Author:** ![pnoeldner](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@pnoeldner](https://forum.inductiveautomation.com/u/pnoeldner)\
**Post date:** [January 14, 2022, 10:28pm UTC](https://forum.inductiveautomation.com/t/historical-tag-recording-too-many-data-points/55037/6 "2022-01-14T22:28:52Z")

</div>

Ultimately, the solution to access the correct tag history data was to use the script function [system.tag.queryTagHistory](https://docs.inductiveautomation.com/display/DOC79/system.tag.queryTagHistory). Another possible solution would be to use a [Tag History Binding](https://docs.inductiveautomation.com/display/DOC79/Tag+History+Binding) and the “AsStored” option.
