runScript expression poll rate question

For the runScript expression you have the option to set a poll rate.
How would ignition handle if the execution time of the runScript takes longer than the poll rate? Does ignition wait for the first call to complete before trying to call again or does it simply fire the script every time the poll rate is due? Could this cause a cascading effect and fire off multiple script calls?

Same question asked a different way:
If I have a script that takes 5 seconds to complete but the runScript poll rate is 1 second, how does ignition handle this?

I believe they are scheduled with fixed delay, meaning if your runScript took 5 seconds to execute and the rate was 1 second the next execution would start 1 second after it finished still.

What you’re doing sounds like an abuse of runScript, though. Sounds like you need a timer script in your life.

2 Likes