Can I write a script to run at an interval in Ignition?

So I am developing some perspectives in Ignition. I have discovered that I can create a tag that has its value tied to an expression. If I configure that script to NOT the boolean value of the tag, then set the expression execution rate to x ms, then the value of the tag will swap every x ms. I can then write a change script to call a function, SCF, script, API call, what have you, and thus that object will be called every x ms. Is there a problem with doing this? Am I going to bog down my system on a large scale if I'm reading/writing/executing large amounts of tags/data/scripts? I'm just testing on a small scale at the moment, but my company plans on implementing this on a large scale for our customers. I'm worried that once this method is applied to an entire factories infrastructure I'm going to crash the poor machine that's forced to run Ignition/support the Gateway. Does anyone with more experience have any insight? Is there a better way to configure a script to run at a regular interval? It doesn't have to be fast, times of 1000-5000 ms are alright with me.

[edit]
To be more specific as to my intentions, I can explain my specific application if needed.

This sounds like an overly complicated way to set up a gateway timer script:
https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TimerScripts

Which, yes, eventually can cause problems for the system if you get to thousands of events doing heavy processing at the same time, but Ignition's pretty good at scaling vertically, so you can always throw a beefier server at the problem.

3 Likes

That sounds like a better solution than the one I have in place. Thanks for the help!