# Function Script not working

**URL:** <https://forum.inductiveautomation.com/t/function-script-not-working/83184>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [December 15, 2023, 10:46am UTC](https://forum.inductiveautomation.com/t/function-script-not-working/83184 "2023-12-15T10:46:26Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 15, 2023, 11:22am UTC](https://forum.inductiveautomation.com/t/function-script-not-working/83184/5 "2023-12-15T11:22:14Z")

</div>

> [@Stef\_Velers](#):
>
> so instead of reading the tag 20 times

Yes, we covered that [yesterday](https://forum.inductiveautomation.com/t/gateway-scripts-or-expression/83077/18) where you were running 48 × `readBlocking` which will run one after another with each waiting until it is finished before going on to the next one. Read them all at once if at all possible. (There will be a maximum limit - but it will be large.)

---

_[View the full topic](https://forum.inductiveautomation.com/t/function-script-not-working/83184)._
