# Slow response observed in Numeric Text Field & 2State Toggle

**URL:** <https://forum.inductiveautomation.com/t/slow-response-observed-in-numeric-text-field-2state-toggle/12191>\
**Category:** Ignition\
**Created:** [September 30, 2016, 4:54pm UTC](https://forum.inductiveautomation.com/t/slow-response-observed-in-numeric-text-field-2state-toggle/12191 "2016-09-30T16:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ismael.Nunez](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@Ismael.Nunez](https://forum.inductiveautomation.com/u/Ismael.Nunez)\
**Post date:** [September 30, 2016, 4:54pm UTC](https://forum.inductiveautomation.com/t/slow-response-observed-in-numeric-text-field-2state-toggle/12191/1 "2016-09-30T16:54:29Z")

</div>

Hello All,

I 've observed that a change in a Numeric Text Field and/or a 2-State Toggle Switch (binding with OPC Tags) takes up to 10 second to be reflected on the component. The change consist in show the value of a OPC tag after a system.tag.write() call executed by a Momentary Button and/or focusLost and/or propertyChange events.

I’ve checked this behavior on the Controller side and you can observe an almost instantaneous change. This is not a critical problem rather a user experience one, as the application will be implemented with a user base with low to none technical knowledge.

I’m inclined to be a tag-reading issue. I can not find how to make this “delay” to be as short as possible. Any ideas on how to fix this??

Thanks for your time!  
I’m attaching some sample code:

focusLost event

```auto
system.tag.write("HORAIRE",0)
```

propertyChange event

`zone = event.source.selectedValue
system.tag.write("ZONE", zone)
system.tag.write("HORAIRE",1)
`

PS: Ignition app will replace a legacy one developed in Cimplicity (where works faster)

Gateway: 7.8.4 (b2016082217)  
OS: Windows 7 on clients / Windows Server 2008 on Gateway  
Java: 1.8.0\_45  
Controller: CompactLogix 1769/1768 & Micrologix 1400  
Scann Class: Default configuration

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 30, 2016, 11:54pm UTC](https://forum.inductiveautomation.com/t/slow-response-observed-in-numeric-text-field-2state-toggle/12191/2 "2016-09-30T23:54:57Z")

</div>

What are the scan class rate(s) on the tags that you’re changing? If you only have a few tags, or you’d like to test, try creating a new scan class and setting the ‘Read After Write’ option, then changing the tags you’re writing to this new scan class.

---

<div class="post-metadata">

**Author:** ![Ismael.Nunez](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@Ismael.Nunez](https://forum.inductiveautomation.com/u/Ismael.Nunez)\
**Post date:** [October 25, 2016, 2:46pm UTC](https://forum.inductiveautomation.com/t/slow-response-observed-in-numeric-text-field-2state-toggle/12191/3 "2016-10-25T14:46:27Z")

</div>

Thanks for your quick response, I was unable to answer this e-mail until now. I made use of `if event.propertyName == "selectedValue":` logic to reduce the system read/write calls, I also change the event calls, from `lost focus` to `click released`  
I’ve been testing this logic for the past week with acceptable results.

I’ll mark this as resolved, thanks for your support.
