I have a script that writes to a SQL database and then needs to trigger a tag at the end of the script.
This is what I have at the end of my script to trigger the Boolean tag:
system.tag.write("Laguna Projects/" + selected_saw + "/Reset_Blade_Counts", 1)
import time
time.sleep(1)
system.tag.write("Laguna Projects/" + selected_saw + "/Reset_Blade_Counts", 0)
I am wanting a way to test that this is in fact resetting the blade counts. I read online that if I made a copy of the tag, it would not affect the original but when I wrote to the test tag, it wrote to both so I don't believe that to be true.
My question is... how can I test that this is working without affecting the current tags that are being used in the program? I don't want to actually reset their blade counts but want to make sure this is working as expected. Any suggestions?