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.

schedule for multiple GA
#1
hello 
I want to use a schedule to turn off some offices lights, but offices might vary so I used script like this :

Is there any recommendation, while the table list will be more (around 50 items)
Code:
value = event.getvalue()

mytable = {67,37,36,16}

for _, mytab in ipairs(mytable) do

  grp.write('1/0/'..mytab,value)


end

regards,
Best Regards,
Reply
#2
Use tags. This way there's a short delay between writes to each object so the bus is not overloaded.
Code:
value = event.getvalue()
grp.tag('Office_1'):write(value)
Reply
#3
(21.12.2021, 08:44)admin Wrote: Use tags. This way there's a short delay between writes to each object so the bus is not overloaded.
Code:
value = event.getvalue()
grp.tag('Office_1'):write(value)

OK 
many thanks admin
Best Regards,
Reply


Forum Jump: