# Dislay system.util.getInactivitySeconds() in numeric led component

**URL:** <https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955>\
**Category:** Ignition\
**Created:** [December 9, 2021, 5:49pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955 "2021-12-09T17:49:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 9, 2021, 5:49pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/1 "2021-12-09T17:49:17Z")

</div>

So i automatically log my user out after 180 seconds of inactivity. I want to display a count down so they know how log they have. But i can’t seem to access/display it on a led numeric component in vision.

Is there a way to do this?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 9, 2021, 5:54pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/2 "2021-12-09T17:54:28Z")

</div>

You probably already have a timer script where you periodically call this and check it to see if you should call logout, right?

If so, just create a new Vision Client memory tag and write the value to it as part of that timer script. Then bind the numeric component value to the memory tag.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 9, 2021, 6:34pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/3 "2021-12-09T18:34:06Z")

</div>

@Kevin.Herron two questions regarding that.

1. will that tag conflict while multiple users on the same project at different HMI’s. Because the tag would be global and affect everyone if i understand correctly. essentially everyone rewriting over everyone.

2. I have a client timer script executing every second. This poses a second issue while writing to a tag. That is when I view my audit log to track user actions i’m seeing a tag write every second for the time value. This clutters my audit log and makes it almost impossible to read.

Thank you!

---

<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:** [December 9, 2021, 6:34pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/4 "2021-12-09T18:34:57Z")

</div>

Vision client tags are unique per client instance.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 9, 2021, 6:42pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/5 "2021-12-09T18:42:39Z")

</div>

@paul-griffith I can work with that. But I still struggle with tag be logged every second on my audit log report.

---

<div class="post-metadata">

**Author:** ![nicoli.liedtke](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nicoli.liedtke](https://forum.inductiveautomation.com/u/nicoli.liedtke)\
**Post date:** [December 9, 2021, 6:44pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/6 "2021-12-09T18:44:34Z")

</div>

Although I think using vision client tags is the way to go, if you really want to not have tag writes in your audit log then you could add a timer component to the same screen as the led numeric component that has a script running every second to set the led numeric value = system.util.getInactivitySeconds()

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 9, 2021, 6:46pm UTC](https://forum.inductiveautomation.com/t/dislay-system-util-getinactivityseconds-in-numeric-led-component/53955/7 "2021-12-09T18:46:57Z")

</div>

You can also use the `runScript` expression function to call `system.util.getInactivitySeconds` instead of writing to a tag.
