how do i close the Damon file so i can edit it
-
how do i stop the Damon file running so i can edit it
Error: Cannot delete file /sys/daemon.g because it is open
;daemon.g
;if S2 P"temp2".lastReading > 50
;M98 P"homex.g"
echo "Valkyrie OK : "
;Constantly runs in background to check outputs etc
if {boards[0].vIn.current >= 23.6} ; check current PSU voltage
echo "Voltage OK : " ^ boards[0].vIn.current ; display OK message and current voltage
else
echo "Voltage low : " ^ boards[0].vIn.current ; display low voltage warning & current voltage
;G4 S60 ; delay running again or next command for at least 60 seconds
G4 S50 ; S time in second repeats. -
-
@moth4017 You can rename it. Then edit it. Then rename back.
-
cheers that was easy , now i feel silly
-
@moth4017 sounds like someone wants to remove that constant voltage echo spam?
😆
-
@exerqtor how did you guess
-
@moth4017 said in how do i close the Damon file so i can edit it:
;daemon.g
;if S2 P"temp2".lastReading > 50
;M98 P"homex.g"I know it's commented out, but this just baffles me.
-
@moth4017 I inclose mine within a while loop:
Set global.RunDaemon to true in config.g.In deamon.g:
while global.RunDaemon
; stuff goes hereI have macros to set while RunDaemon true or false (on/off)
It's better than the rename method, since my keyboard likes to misspell words.
-
@stephen6309 said in how do i close the Damon file so i can edit it:
@moth4017 I inclose mine within a while loop:
Set global.RunDaemon to true in config.g.In deamon.g:
while global.RunDaemon
; stuff goes hereI have macros to set while RunDaemon true or false (on/off)
It's better than the rename method, since my keyboard likes to misspell words.
Like that one, gonna adopt that
EDIT:
in globals.g (ran by config.g at startup):
if !exists(global.RunDaemon) global RunDaemon = true
daemon.g:
; daemon.g ; Used to execute regular tasks, the firmware executes it and once the end of file is reached it waits. If the file is not found it waits and then looks for it again. ; Loop, to be able to turn on/off daemon.g while global.RunDaemon ; stuff goes here G4 S30 ; delay running again or next command for at least 30 seconds
Toggle daemon macro:
; Toggle daemon.g on / off ;Check if daemon.g is already enabled or not, and act accordingly if global.RunDaemon = true set global.RunDaemon = false echo "daemon.g disabled" elif global.RunDaemon = false set global.RunDaemon = true echo "daemon.g enabled"
-
could someone share what a daemon.g would look like for a heated chamber only to 80c tru a switching 3-32 vdc to SSR at mains VAC
i am getting way to many alarms in the 3.4 and wants to see 1.7C/sec without daemon.g and the chamber is expected to take about 10 min from cold chamber to set point and these types of alarms are no good for a chambers so i am here looking at daemon options to do so should someone have an example or kind of what it should look like? -