# What Minimum Sample Rate should be used to capture only On Change for a discrete tag?

**URL:** <https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 14, 2023, 6:02pm UTC](https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822 "2023-08-14T18:02:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warren\_Hem](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@Warren\_Hem](https://forum.inductiveautomation.com/u/Warren_Hem)\
**Post date:** [August 14, 2023, 6:02pm UTC](https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822/1 "2023-08-14T18:02:18Z")

</div>

We have a discrete tag that I only want to record history when the tag changes. I don't need a minimum or maximum time between samples. Will a setting of 0 for both Min and Max remove any min and max time sample when sample mode is On Change?

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

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![cegge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cegge/32/74942_2.png) [@cegge](https://forum.inductiveautomation.com/u/cegge)\
**Post date:** [August 14, 2023, 6:14pm UTC](https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822/2 "2023-08-14T18:14:51Z")

</div>

Yes, 0 will remove any time and only capture on change.

---

<div class="post-metadata">

**Author:** ![Warren\_Hem](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@Warren\_Hem](https://forum.inductiveautomation.com/u/Warren_Hem)\
**Post date:** [August 14, 2023, 6:21pm UTC](https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822/3 "2023-08-14T18:21:45Z")

</div>

Thank you! Did I miss that in the documentation somewhere, or did you test it and figure it out on your own?

---

<div class="post-metadata">

**Author:** ![cegge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cegge/32/74942_2.png) [@cegge](https://forum.inductiveautomation.com/u/cegge)\
**Post date:** [August 14, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/what-minimum-sample-rate-should-be-used-to-capture-only-on-change-for-a-discrete-tag/77822/4 "2023-08-14T21:01:10Z")

</div>

I just assumed 0 would never sample. My assumption just turned out to work lol.
