# Changing a direct scan classes speed based on duration of call

**URL:** <https://forum.inductiveautomation.com/t/changing-a-direct-scan-classes-speed-based-on-duration-of-call/21307>\
**Category:** Ignition\
**Created:** [December 9, 2018, 8:15pm UTC](https://forum.inductiveautomation.com/t/changing-a-direct-scan-classes-speed-based-on-duration-of-call/21307 "2018-12-09T20:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibrandstetter](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@ibrandstetter](https://forum.inductiveautomation.com/u/ibrandstetter)\
**Post date:** [December 9, 2018, 8:15pm UTC](https://forum.inductiveautomation.com/t/changing-a-direct-scan-classes-speed-based-on-duration-of-call/21307/1 "2018-12-09T20:15:17Z")

</div>

I would like to write a script that monitors the average response time of a given scanclass, and changes the poling rate of the scanclass to be Average response time + 10%.

Does anyone know how i would go about this? Or if there is a way to change a scanclass with a script
