![]() |
Os.sleep function - 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: Os.sleep function (/showthread.php?tid=3041) |
Os.sleep function - Tokatubs - 02.12.2020 I am running a simple timer. But now the client want the ability to change the os.sleep time. Probably a stupid question but is there a possibility to connect a virtual address to the os.sleep and then have the abiliity to change the sleep time? grp.write('26/6/183', true) os.sleep(1800) RE: Os.sleep function - admin - 02.12.2020 Like this, but value change won't affect any script that's already sleeping. Code: value = grp.getvalue('1/1/1') RE: Os.sleep function - Tokatubs - 02.12.2020 If it was just triggered it will run this example the 1800 seconds. Then next time it will add the new value. Is this correctly understood? RE: Os.sleep function - admin - 02.12.2020 The next time it will use the new value if the value has been changed during os.sleep call. |