Unexpected error reported during autofocus
Posted: Sat Jul 22, 2023 3:50 am
I was running an imaging session last week with a SharpCap sequencer script, and it reported an unexpected problem with the autofocus during the running of this script that I do not understand. My sequence run had a loop that did the following:
LOOP 3 TIMES
SET EXPOSURE TO 2
SET GAIN TO 300
GUIDING STOP
AUTOFOCUS OFFSET 50 TO -40 STEP COUNT 9 BACKLASH 50
GUIDING START
SET EXPOSURE TO 300
SET GAIN TO 139
FRAMETYPE Light
#Keep this inner loop set to 4 for one hour of imaging
LOOP 4 TIMES
CAPTURE 1 FRAMES REQUIREGUIDING True
CAPTURE 1 FRAMES REQUIREGUIDING True
CAPTURE 1 FRAMES REQUIREGUIDING True
GUIDING DITHER NOW
END LOOP
END LOOP
I've used this a number of times successfully prior to this (and since then), and this loop executed fine the first 2 times through it on the night of 14 July. Then, when it was starting the third time through this loop, and it was in the process of making the third step (of the 9 requested) in the autofocus routine, I got this message in the log file:
Notification (Status=Error): 1 focus samples collected at 20367, but now focuser has unexpectedly moved to 20379.
This means that although the focuser was supposed to successively move inward to smaller steps each time, for some reason it appears that it moved outward unexpectedly, back to the last step that it had used. I have attached an excerpt from the log file during the time of this autofocus problem.
My question is: Is this just a one-time "glitch" that happened to me that I should ignore, or have others seen this happen, and if so, is there something to do to prevent this from happening again? It's not that I touched anything that may have caused this, because I was sleeping at the time. I did get up shortly after this, saw the issue that stopped the imaging session, and then I restarted the script, and the autofocus worked fine from then on, and I've used it successfully on several nights since then.
Any explanation for this unexpected autofocus error would be appreciated,
Rich
LOOP 3 TIMES
SET EXPOSURE TO 2
SET GAIN TO 300
GUIDING STOP
AUTOFOCUS OFFSET 50 TO -40 STEP COUNT 9 BACKLASH 50
GUIDING START
SET EXPOSURE TO 300
SET GAIN TO 139
FRAMETYPE Light
#Keep this inner loop set to 4 for one hour of imaging
LOOP 4 TIMES
CAPTURE 1 FRAMES REQUIREGUIDING True
CAPTURE 1 FRAMES REQUIREGUIDING True
CAPTURE 1 FRAMES REQUIREGUIDING True
GUIDING DITHER NOW
END LOOP
END LOOP
I've used this a number of times successfully prior to this (and since then), and this loop executed fine the first 2 times through it on the night of 14 July. Then, when it was starting the third time through this loop, and it was in the process of making the third step (of the 9 requested) in the autofocus routine, I got this message in the log file:
Notification (Status=Error): 1 focus samples collected at 20367, but now focuser has unexpectedly moved to 20379.
This means that although the focuser was supposed to successively move inward to smaller steps each time, for some reason it appears that it moved outward unexpectedly, back to the last step that it had used. I have attached an excerpt from the log file during the time of this autofocus problem.
My question is: Is this just a one-time "glitch" that happened to me that I should ignore, or have others seen this happen, and if so, is there something to do to prevent this from happening again? It's not that I touched anything that may have caused this, because I was sleeping at the time. I did get up shortly after this, saw the issue that stopped the imaging session, and then I restarted the script, and the autofocus worked fine from then on, and I've used it successfully on several nights since then.
Any explanation for this unexpected autofocus error would be appreciated,
Rich