# Gateway Timer Event Scripting

**URL:** <https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250>\
**Category:** Ignition Early Access\
**Tags:** python, ignition80, perspective, scripting\
**Created:** [April 9, 2022, 7:10am UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250 "2022-04-09T07:10:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baskar\_Arumugam](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Baskar\_Arumugam](https://forum.inductiveautomation.com/u/Baskar_Arumugam)\
**Post date:** [April 9, 2022, 7:10am UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250/1 "2022-04-09T07:10:10Z")

</div>

Dear All,  
Please anyone guide me for reading the tag instance name from tag browser using the gateway timer event script (every 1 second) and has to run the named query for inserting the collected tag instances name to the table.

please guide me if anybody have idea about this.

Thanks in Advance

---

<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:** [April 9, 2022, 2:07pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250/2 "2022-04-09T14:07:46Z")

</div>

A tag browser in a Vision client? A gateway script will not have any access to the components of a client. Perhaps you need a client timer event script? Or perhaps a timer component on the window that contains the tag browser component.

---

<div class="post-metadata">

**Author:** ![Baskar\_Arumugam](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Baskar\_Arumugam](https://forum.inductiveautomation.com/u/Baskar_Arumugam)\
**Post date:** [April 12, 2022, 4:31am UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250/3 "2022-04-12T04:31:49Z")

</div>

I have more than 1000 of tags under one Tag folder in Tag Browser, I want to update the Tag Names into the SQL table every 10 seconds. Now I am running the script inside the perspective view using timer trigger. But instead of that I want to run the same script in Gateway Scope.  
Because If I running the script inside my perspective session, when no.of session will increase, every session will run the script every 10 seconds. Am I right ?. To avoid these kind of execution I want to run the same script in gateway scope. By this way I can run the script only once at a time, even If my No.of session Increased.

---

<div class="post-metadata">

**Author:** ![johannes.bo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/johannes.bo/32/27628_2.png) [@johannes.bo](https://forum.inductiveautomation.com/u/johannes.bo)\
**Post date:** [April 12, 2022, 7:16am UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250/4 "2022-04-12T07:16:50Z")

</div>

You are right 😃  
Typical example where you want to run the operation in gateway scope  
It will probably perform better also.

---

<div class="post-metadata">

**Author:** ![Baskar\_Arumugam](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Baskar\_Arumugam](https://forum.inductiveautomation.com/u/Baskar_Arumugam)\
**Post date:** [April 12, 2022, 9:13am UTC](https://forum.inductiveautomation.com/t/gateway-timer-event-scripting/58250/5 "2022-04-12T09:13:40Z")

</div>

Thank you for your replies.  
I have completed this with the use of System Functions in Gateway Timer event Script.
