# Forcing first value read

**URL:** <https://forum.inductiveautomation.com/t/forcing-first-value-read/36646>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [July 13, 2020, 4:04pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646 "2020-07-13T16:04:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![betti.francesco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/betti.francesco/32/6309_2.png) [@betti.francesco](https://forum.inductiveautomation.com/u/betti.francesco)\
**Post date:** [July 13, 2020, 4:04pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/1 "2020-07-13T16:04:02Z")

</div>

Hello, I’ve already posted a quite similar question, anyway this question is more specific.  
I have a leased tag group set with a rate = 0 and a leased rate = 1 sec, which means that the tag will be read only if the tag is in the HMI. On gateway startup, the related tags will be set with the “uncertain value” overlay, because they’re not already been updated.  
Given this context, is there a way to force a first value read for a tag on this tag group, only from scripting, without having to set it on the HMI?  
Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [July 14, 2020, 12:35pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/2 "2020-07-14T12:35:26Z")

</div>

Sounds like you may need to use this function in a Gateway startup script, though I haven’t tested in your context:

[https://docs.inductiveautomation.com/display/DOC80/system.tag.requestGroupExecution](https://docs.inductiveautomation.com/display/DOC80/system.tag.requestGroupExecution)

---

<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:** [July 14, 2020, 12:52pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/3 "2020-07-14T12:52:24Z")

</div>

Huh. Hadn’t noticed that addition. Thanks, Jonathan.

---

<div class="post-metadata">

**Author:** ![betti.francesco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/betti.francesco/32/6309_2.png) [@betti.francesco](https://forum.inductiveautomation.com/u/betti.francesco)\
**Post date:** [July 14, 2020, 1:20pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/4 "2020-07-14T13:20:55Z")

</div>

Many thanks! didn’t know about this one, I will test it as soon as possible!

---

<div class="post-metadata">

**Author:** ![betti.francesco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/betti.francesco/32/6309_2.png) [@betti.francesco](https://forum.inductiveautomation.com/u/betti.francesco)\
**Post date:** [July 14, 2020, 1:45pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/5 "2020-07-14T13:45:02Z")

</div>

Unfortunately it doesn’t work: the problem here is that on a leased tag group the rate on a particular tag switches from the basic rate (0) to the leased rate only when it’s bind and loaded in a view: it seems there’s no other way to force that, or at least I haven’t found it.

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [July 14, 2020, 1:57pm UTC](https://forum.inductiveautomation.com/t/forcing-first-value-read/36646/6 "2020-07-14T13:57:22Z")

</div>

I did wonder if that wouldn’t be useful to you, apologies
