Logic Machine Forum
Resident script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Resident script (/showthread.php?tid=3771)



Resident script - sashhun - 23.12.2021

Hello. I noticed that when a resident script is executed with an interval of 3 seconds, the log about the script execution time is recorded with an interval of 5-6 seconds, respectively, and the data that I receive via rs232 is also recorded with this interval. Why is the logging time inconsistent with the resident script interval?


RE: Resident script - admin - 23.12.2021

Your script is running for 2.5 seconds plus 3 seconds sleep time. The total is around 5.5 seconds so you get logs each 5-6 seconds because the time is rounded to whole seconds.