This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Resident script
#1
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?

Attached Files Thumbnail(s)
   
Reply
#2
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.
Reply


Forum Jump: