Logic Machine Forum
What to use as a global variable in LogichMachine - 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: What to use as a global variable in LogichMachine (/showthread.php?tid=6030)



What to use as a global variable in LogichMachine - ole - 20.06.2025

Hi,

What is the best practise for global variables for use between scripts?

As I understand the "storage." command is not just stored in the ram, but is also saved to the memory card in the LM after some time - and might lead to a issues with memory card after running for a long time (?)
Not sure how the virtuall group adresses is working, if they also are saved to the memory card or is just stored in the ram.
Perhaps there is other options as well ?


I'm just started looking into scripting on the LM, so any help will be appriciated


RE: What to use as a global variable in LogichMachine - admin - 20.06.2025

You can safely use storage or virtual groups. Data is stored in RAM and saved to SD card periodically. It does not matter how many times the data is updated between these saves.