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 halt
#1
Hi all,

I'm using some event-based scripts to enable/disable the relevant scripts (to switch from a resident script to another).
For example resident script #1 performs a cyclic rotation of red and green lights every 5 secs while resident script #2 performs a cyclic rotation of red and blue lights every 15 secs.

All works fine but... the problem is that when by means of the event-based script I disable a resident script it doesn't stop immidiately ("halt") but instead it ends its cycle beforeĀ 
the other resident script starts.


This is one of the the event-based scripts, where r_script* is a resident script:

value = grp.getvalue('7/1/1')
if (value == true) then
script.disable('r_scritp1')
script.enable('r_script2')
end


Is there a better way to do this? Is there a command to immediately stop e running resident script?
Thanks
Reply


Messages In This Thread
Resident script halt - by Kapudan - 06.12.2024, 21:17
RE: Resident script halt - by admin - 09.12.2024, 07:53

Forum Jump: