Dither Issue

Somewhere to ask questions about the best way to use SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
DirtyRod
Posts: 45
Joined: Mon May 09, 2022 3:08 am

Dither Issue

#1

Post by DirtyRod »

Hey Robin,

Trying to figure out what I'm doing wrong. I'm trying to implement dithering in my sequence but I'm erroring out right after I autofocus. Here is the sequence. I'm pausing guiding while I autofocus and then after reloading the camera settings and unpausing guiding I issue a wait until guiding resumes. After I issue the command I'm getting the Dither error at the bottom because guiding is not active. Its as though it's not waiting until guiding is active to check to see if it's time to dither.

What am I doing wrong?


GUIDING DITHER EVERY 3 FRAMES
STOP AT LOCALTIME "4:00 AM"
LOOP 25 TIMES
CAPTURE 20 FRAMES REQUIREGUIDING False
BEGIN GUIDING PAUSE
PRESERVE CAMERA SETTINGS
FOCUSER CONNECT
SET EXPOSURE TO 4
SET CONTROL Brightness TO 0
SET GAIN TO 300
DELAY 5
DISPLAY STRETCH AUTO
AUTOFOCUS OFFSET -80 TO 90 STEP COUNT 12 BACKLASH 30
DISPLAY STRETCH RESET
DELAY 5
END PRESERVE
END GUIDING PAUSE
GUIDING WAIT
END LOOP
END STOP AT

Debug 00:32:03.656577 #1 Sequencer : Completed : Autofocus from offset -80 to 90 with 12 steps allowing for backlash up to 30 in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 00:32:03.661551 #1 Sequencer : Pausing main sequence to run periodic task Dither every 3 frames in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Debug 00:32:03.666534 #1 Sequencer : Starting : Request a single dither from Guiding Application in void SharpCap.Sequencer.SequencerContext.OnProgress(string e)
Error 00:32:03.671517 #1 Running step Request a single dither from Guiding Application : Exception of type 'Exception' : Cannot dither - PHD2 needs to be guiding, but is Stopped
DirtyRod
Posts: 45
Joined: Mon May 09, 2022 3:08 am

Re: Dither Issue

#2

Post by DirtyRod »

Update: Not sure how I missed the Stop Periodic Dithering command but I did. I just bracketed the image capture commands with the start and stop dithering commands and will give that a shot tonight.
User avatar
admin
Site Admin
Posts: 17488
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Dither Issue

#3

Post by admin »

Hi,

yes, I think that should be the answer - since you haven't asked it to stop dithering, it tries again but PHD is now no longer guiding and that raises the error.

cheers,

Robin
DirtyRod
Posts: 45
Joined: Mon May 09, 2022 3:08 am

Re: Dither Issue

#4

Post by DirtyRod »

Yup. Worked like a charm!

Now to get the meridian flip figured out!
Post Reply