Resolved Starting and stopping guider?

Discussion in 'Scripting and Programming' started by Maneesh Yadav, Apr 27, 2018.

  1. Maneesh Yadav

    Maneesh Yadav Cyanogen Customer

    Joined:
    Jul 12, 2016
    Messages:
    68
    This little script (mostly stolen from an example somewhere) for doing a blind slew with FocusMax seems to be working mostly. Everything works ok but I get an opaque error (I couldn't copy it from the command prompt) about something like "MaximDL cannot start guider". GuiderExpose and then and GuiderTrack should do the trick, no? Main part of the script (not much of a windows programmer):



    Set FMx = CreateObject("FocusMax.FocusControl")
    Set FMxFoc = CreateObject("FocusMax.Focuser")

    FMx.AcquireStarEnable = True
    FMx.AcquireStarSolveEnable = False
    FMx.AcquireStarFinalPointingUpdate = False
    FMx.AcquireStarReturnSlewEnable = True

    camera.GuiderStop()

    camera.Filter = 4
    FMx.AcquireStar()

    camera.GuiderExpose(2.0)
    camera.GuiderTrack(2.0)

    Set FMxFoc = nothing
    Set FMx = nothing
     
  2. Maneesh Yadav

    Maneesh Yadav Cyanogen Customer

    Joined:
    Jul 12, 2016
    Messages:
    68
    Ah didn't realize that GuiderExpose is asynchronous. Waiting until GuiderRunning is false did the trick.
    For my purposes it is convenient to set the focus star in TheSky 6 (by copying the selected star info to clipboard), writing the ra/dec to disk; another script reads the current focus star position from the disk and slews back and forth between the object and focus star between subs. Works nicely.

    Haven't measured the pointing error on my setup but it seems to be quite small for "nearby" focus stars.
     

Share This Page