# Parameterized tag read and write

**URL:** <https://forum.inductiveautomation.com/t/parameterized-tag-read-and-write/59372>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [May 9, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/parameterized-tag-read-and-write/59372 "2022-05-09T19:57:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Smith](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@Christopher\_Smith](https://forum.inductiveautomation.com/u/Christopher_Smith)\
**Post date:** [May 9, 2022, 7:57pm UTC](https://forum.inductiveautomation.com/t/parameterized-tag-read-and-write/59372/1 "2022-05-09T19:57:40Z")

</div>

I am trying use scripting in a vision client to read a tag and toggle it’s value when a button is pressed. The button is the same button used for 25 cases and will toggle the corresponding tags depending on the parameter number passed when the screen pops up. I have tried to insert a variable into the string path for the tag, but have not had any luck. Also I keep getting an error that says there is no attribute readblocking, but I am sure I have used that before.

station = str(event.source.parent.StationNum)  
tag = ‘[default]Devices/S’+station+‘CondAEnbl’  
current = system.tag.readblocking([tag])[0].value

---

<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:** [May 9, 2022, 7:58pm UTC](https://forum.inductiveautomation.com/t/parameterized-tag-read-and-write/59372/2 "2022-05-09T19:58:59Z")

</div>

> [@Christopher\_Smith](#):
>
> readblocking

Capitalization matters - try `system.tag.readBlocking`.

---

<div class="post-metadata">

**Author:** ![Christopher\_Smith](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@Christopher\_Smith](https://forum.inductiveautomation.com/u/Christopher_Smith)\
**Post date:** [May 9, 2022, 8:00pm UTC](https://forum.inductiveautomation.com/t/parameterized-tag-read-and-write/59372/3 "2022-05-09T20:00:30Z")

</div>

Yep.  
That would be it. Thank you. I figured it was something easy.
