Posts: 143
Threads: 25
Joined: May 2017
Reputation:
2
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
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
Do you mean flashing or blinking?
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
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
20.06.2018, 21:36
(This post was last modified: 20.06.2018, 21:36 by buuuudzik.)
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
Posts: 4572
Threads: 23
Joined: Aug 2017
Reputation:
206
Or find yourself nice GIF icon which flash and this will save you a lot of telegrams.
------------------------------
Ctrl+F5