# Tag diagnostics

**URL:** <https://forum.inductiveautomation.com/t/tag-diagnostics/5882>\
**Category:** Ignition\
**Created:** [February 18, 2013, 10:48am UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882 "2013-02-18T10:48:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://forum.inductiveautomation.com/u/Ruslan)\
**Post date:** [February 18, 2013, 10:48am UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/1 "2013-02-18T10:48:36Z")

</div>

Hello, I would like to troubleshoot my newly written schedule gateway timer script, and find out why some tags are not changed in time. How can I check write times of specific tag, and confirm that it was rewritten by script? audit\_events table apparently doesn’t include tag changes, when it is performed by script. And diagnostics windows don’t seem to be useful here as well.

---

<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:** [February 18, 2013, 3:02pm UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/2 "2013-02-18T15:02:01Z")

</div>

Are you using the system.tag.write\* or system.opc.write\* functions?

---

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://forum.inductiveautomation.com/u/Ruslan)\
**Post date:** [February 18, 2013, 3:35pm UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/3 "2013-02-18T15:35:14Z")

</div>

At the moment, I’m using writeValue, but previously used writeToTag, and I can easily switch between them

---

<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:** [February 18, 2013, 3:38pm UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/4 "2013-02-18T15:38:48Z")

</div>

Well, when using the system.opc.writeValue, you won’t see the write show up in tag diagnostics or audit since it’s going straight to the OPC server.

This could also account for the delay you see in the values changing - with the write going directly to the server you won’t see the SQLTag change until it receives a subscription update from the OPC server, which will depend on your scan class.

---

<div class="post-metadata">

**Author:** ![Ruslan](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ruslan](https://forum.inductiveautomation.com/u/Ruslan)\
**Post date:** [February 19, 2013, 6:52am UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/5 "2013-02-19T06:52:05Z")

</div>

Ok, how can I trace these changes, if I use writeToTags function instead? I mean following specific tag, which interests me at the moment.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 23, 2013, 12:33am UTC](https://forum.inductiveautomation.com/t/tag-diagnostics/5882/6 "2013-02-23T00:33:40Z")

</div>

Yes, the writeToTags function will go through our auditing system.
