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.

Need to create ripple effect with DALI RGB stripes
#1
Hello,
I use LM5 but have no experience with scripting.
I need to create a ripple effect on 19 zones of DALI RGB light tubes, with repeating waves with different tones of blue.
Can someone help me with this? Being paid.
Thanks and regards

Attached Files Thumbnail(s)
   
Reply
#2
Resident script with 0 sleep time. Script assumes that your RGB objects are addressed from 1/1/1 to 1/1/19.

colors table contains RGB color values in hexadecimal form. You can add extra elements if needed.

os.sleep(1) controls the time between each step (1 second in this example).

Code:
colors = {
  0xFFFFFF,
  0x7F7FFF,
  0x3F3FFF,
  0x0000FF,
}

count = 19

for i = 1, count do
  for j, color in ipairs(colors) do
    index = i + 1 - j

    if index < 1 then
      index = index + count
    end

    grp.write('1/1/' .. index, color)
  end

  os.sleep(1)
end
Reply
#3
Hello,
Thank you very much. Will try it.
Best regards
Reply
#4
Hello,

How can I create a script / routine to start a scene every 2 minutes. I have a scene that takes 2 minutes to execute. Then I wanted to start it again.

Is it possible?

Thank you
Reply
#5
Run a scheduled script
------------------------------
Ctrl+F5
Reply


Forum Jump: