I have a very simple script that I need to run in the Gateway Startup. I only want to write to some tags. The script does not run, so that the script run faster than the Tag Provider load or something. So, I tried using threading Timer to delay my script, but I does not run at all no matter how much delay.
import threading from threading import Timer def initStations(): system.tag.write("[TagProvider]PumpStations/Station1/Pump1/Ready", True) Timer(60.0, initStations).start()
Note: without the delay, the script runs only if I modify it and save the project (initial change), but still does not run when I stop and start my server (from windows services > Ignition > Stop, then Start).
Thanks in advance.