timer_start
Simulation Instrument Studio 1
Definition
timer_id = timer_start(delay, period, callback_function)
Remarks
Start a timer which will call a function at a given interval. Delay is initial delay, period is repeat interval (ms).
Example
No sample instrument calls this yet.
timer_start()
Example: once, and every half second
-- Once, a second after launch
timer_start(1000, function()
log("warmup done")
end)
-- Every half second. count is how many times it has fired.
blink = timer_start(0, 500, function(count)
visible(fail_lamp, count % 2 == 0)
end)

