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.

Documentation
#15
Hi,
I’ve been testing the PID thermostat example from the LogicMachine scripting guide: https://kb.logicmachine.net/scripting/pid-thermostat/
I have a clarification question about how the scripts run in memory:
  • For resident scripts, my understanding is that they run inside a long-lived loop (with a sleep based on the standby time). Because the script stays resident, allocations (e.g., tables/metatables) remain valid across loop iterations, so the script doesn’t “reset” memory each cycle. Is that correct?

  • For scheduled scripts, my understanding is that they are invoked each time the schedule triggers (similar to a cron job that starts a fresh execution of the script). In that case, allocations would be fresh per run. Is that correct?
Thanks for your help it's much appreciated.

Cheers xxyzz
Reply


Messages In This Thread
Documentation - by admin - 01.07.2015, 11:47
RE: Documentation - by oyvindi - 02.11.2016, 11:39
RE: Documentation - by admin - 02.11.2016, 12:10
RE: Documentation - by Reuben Sugars - 30.01.2017, 06:13
RE: Documentation - by admin - 30.01.2017, 07:34
RE: Documentation - by edgars - 13.03.2017, 12:17
RE: Documentation - by 02dag - 13.04.2017, 11:21
RE: Documentation - by mjaanes - 15.10.2018, 09:38
RE: Documentation - by AEK - 18.10.2018, 12:46
RE: Documentation - by alik - 13.12.2018, 14:27
RE: Documentation - by Erwin van der Zwart - 13.12.2018, 18:24
RE: Documentation - by tigi - 30.11.2025, 10:05
RE: Documentation - by AEK - 01.12.2025, 10:17
RE: Documentation - by tigi - 01.12.2025, 10:21
RE: Documentation - by xxyzz - 06.08.2026, 06:49
RE: Documentation - by admin - 06.08.2026, 06:50

Forum Jump: