I am trying to use an expression tag to produce a random value every 30 seconds in Ignition 8.0.5 using a the runScript expression and a script called randomInt written in a global project. For some reason it is producing a Bad_Stale value and I can’t figure out why. Here is the global script.
def randint(lower, upper):
return random.randint(lower, upper)
Here is my runScript expression:
runScript(“randomInt.randInt”, 0, 0, 160)