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.

How to lock a script during execution
#1
Hi,
 
In a project, we use a pushbutton on KNX which triggers a LM4 script that gives instruction to the intercom to give a doorbell sound. But… when they push more than 1 time (like a couples of times directly after eachother), the intercom gets a couple of times the instruction and gets confused.
 
What is the best way to avoid that a running script is executed a second time?
 
Thanks!
Reply
#2
Event script has Execution mode: You can select First or Last. Add some os.sleep() on the end to make sure next script is not triggered.
This is implemented in latest fw.
------------------------------
Ctrl+F5
Reply


Forum Jump: