What is the invocation rate of daemon.g?
-
The documentation suggests 1 sec but I think I am getting 10 secs with a simple echo command.
"once the end of file is reached it waits for a second and then executes it again"
https://duet3d.dozuki.com/Wiki/Macros#Section_daemon_g
-
I seem to recall that it was changed from 1 sec to 10 sec to reduce the load on the processor.
Frederick
-
Thanks @fcwilt.
Edit: I want to use it to update the neopixel color based on status and temperatures but I can force an immediate response when start printing by calling the update macro also from my print start gcode.
-
@zapta yes it's 10 seconds. If you need a higher rate, use a while-loop within daemon.g. That is more efficient because it avoids re-opening the daemon.g file on each iteration.
-
Thanks @dc42, I can live with 10 secs. This is to update the neopixel color and I can force additional updates on events such as starting a print.
BTW, may be useful to update the documentation, including with the loop idea.