I am having trouble finding the error in this code:
def valueChanged(tag, tagPath, previousValue, currentValue, initialChange, missedEvents):
if currentValue == 3:
system.tag.writeBlocking("[.]MultipleTestsPrgrm.value",1)
else:
system.tag.writeBlocking("[.]MultipleTestsPrgrm.value",0)
I am simply trying to flip a boolean tag to true when the currentValue of the tag changes to a 3, and flip the boolean tag to false on any other number.
Any ideas?