Logic Machine Forum
flasing - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: flasing (/showthread.php?tid=1458)



flasing - balatis - 20.06.2018

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


RE: flasing - buuuudzik - 20.06.2018

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?


RE: flasing - balatis - 20.06.2018

(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


RE: flasing - buuuudzik - 20.06.2018

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.


RE: flasing - Daniel - 21.06.2018

Or find yourself nice GIF icon which flash and this will save you a lot of telegrams.


RE: flasing - balatis - 21.06.2018

(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