Ok. New module “Life Cycle” w/ system.util.persistent(name)
utility function.
For v7.9: https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121825.modl
For v8.0: https://www.automation-pros.com/ignition/Life%20Cycle-0.9.0.2004121920-v8.modl
Test with a project script like this:
# project script "Life"
g = system.util.persistent('LifeTest')
count = g.setdefault('editCount', -1)
count += 1
g['editCount'] = count
def editCount():
return count
Print the return from Life.editCount()
in a gateway event.