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]).value