I need some help figuring out why I can't add +0.0001. My script works fine when i am working in the 3rd decimal place but if I do anything more than that the script doesn't work.
I believe you need to change the deadband.
what should i change it to?
Does your tag have a starting value? if the tag is Null it might be having a hard time starting.
Try changing it to half of the minimum change you want to detect, so 0.00005.
Tips:
tagValue += 0.0001
syntax works in Python.- system.tag.writeBlocking expects lists for both the paths and arguements (although it still works with a string when there's only one - for backward compatibility) so,
path = ["[tags2]11E211/Entry0"]
tagValue = system.tag.readBlocking(path)[0].value
tagValue += 0.0001
system.tag.writeBlocking(path, [tagValue])
NP209's comment is right. Your tag definition value is blank.