# Value Changed Event Script- Update Speed

**URL:** <https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079>\
**Category:** Ignition\
**Created:** [February 21, 2018, 7:40pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079 "2018-02-21T19:40:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhunter](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jhunter](https://forum.inductiveautomation.com/u/jhunter)\
**Post date:** [February 21, 2018, 7:40pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/1 "2018-02-21T19:40:20Z")

</div>

Hello. I’m working in version 7.7.4.  
I set up a pair of memory tags, with boolean data type. I then set up a script on one to transfer the value to the other on value change. See below:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/48aff504b52b81aadacaf5a298f24b0eb59a0246.PNG)  
These tags are using the default scan class. When I change the value of the original tag, it takes minutes (around 5) before the script runs and writes the value to the second tag. Any ideas as to why there is a delay? Shouldn’t it run at the scan, given that the value would have changed?

Thanks for the help!

Hunter

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 22, 2018, 3:44pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/2 "2018-02-22T15:44:39Z")

</div>

I’m not able to replicate your issue, though I am running a more recent version of the gateway.

Have you checked your gateway status/logs for signs of anything unusual? Also check your scan class definitions to be sure it’s running at the default rate of 1,000 ms.

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 22, 2018, 3:46pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/3 "2018-02-22T15:46:50Z")

</div>

Slightly related: when checking the quality of a tag, you can simply use: `currentValue.quality.isGood()` which returns either True or False. Not sure if that’s available in 7.7.4, though I’d assume so.

---

<div class="post-metadata">

**Author:** ![jhunter](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jhunter](https://forum.inductiveautomation.com/u/jhunter)\
**Post date:** [February 22, 2018, 3:58pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/4 "2018-02-22T15:58:22Z")

</div>

When trying it again this morning, now it functions properly. I didn’t change anything in the gateway or project between then and now. As they are memory tags, I don’t think it was caused by a networking issue. Is it possible that the gateway was getting slowed up / backed up?

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 22, 2018, 4:04pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/5 "2018-02-22T16:04:41Z")

</div>

Memory tags that aren’t client tags are still stored in the gateway, not your local machine.

If you can access the gateway: go to status-\>performance on the left to see historical trends of resource utilization as well as any slow events.  
Under status-\>logs you can see anything that may have went wrong at the time (in the gateway).

---

<div class="post-metadata">

**Author:** ![jhunter](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jhunter](https://forum.inductiveautomation.com/u/jhunter)\
**Post date:** [February 22, 2018, 4:22pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/6 "2018-02-22T16:22:03Z")

</div>

Unfortunately, in 7.7.4, I don’t have access to those windows. Is there another way to look at this info?

---

<div class="post-metadata">

**Author:** ![bfuson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfuson/32/4597_2.png) [@bfuson](https://forum.inductiveautomation.com/u/bfuson)\
**Post date:** [February 22, 2018, 7:19pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/7 "2018-02-22T19:19:03Z")

</div>

I’ve never used 7.7, and can’t seem to find the relevant documentation. Maybe someone a little less green can help 😊

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 22, 2018, 7:22pm UTC](https://forum.inductiveautomation.com/t/value-changed-event-script-update-speed/17079/8 "2018-02-22T19:22:09Z")

</div>

The trends are only available in 7.9.x. The logs are available in older versions, but in the `Configure` section under `System` =\> `Console`.
