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.

flasing
#1
hello
does anyone knows how can flasing an object?

i used the following but did not work

if event.getvalue() == true then
  grp.write('1/2/16', flasing,2)
end

thanks in advance
Reply
#2
Do you mean flashing or blinking?Wink

Code:
enableGA = '1/1/1'
outputGA = '1/1/2'

while grp.getvalue(enableGA) do
  grp.write(outputGA, not grp.getvalue(outputGA))
  os.sleep(1)
end

But what you try to exactly achieve?
Done is better than perfect
Reply
#3
(20.06.2018, 21:04)buuuudzik Wrote: Do you mean flashing or blinking?Wink

Code:
enableGA = '1/1/1'
outputGA = '1/1/2'

while grp.getvalue(enableGA) do
 grp.write(outputGA, not grp.getvalue(outputGA))
 os.sleep(1)
end

But what you try to exactly achieve?

sorry blink i would like .
i tried it but not work
i would like to have an alarm blink in visu
Reply
#4
a) You can use FBEditor app and Control -> Oscillator.

b) If you want create script then you can create Resident script with 2 seconds interval and inside it type (fill with your GAs):
Code:
enableGA = '1/1/1'
outputGA = '1/1/2'
if grp.getvalue(enableGA) then grp.write(outputGA, not grp.getvalue(outputGA)) end


If you are using event-based script for blinking you must be careful to not create infinite-loop.
Done is better than perfect
Reply
#5
Or find yourself nice GIF icon which flash and this will save you a lot of telegrams.
------------------------------
Ctrl+F5
Reply
#6
(21.06.2018, 07:54)Daniel. Wrote: Or find yourself nice GIF icon which flash and this will save you a lot of telegrams.

thanks for the help
Reply


Forum Jump: