Gain control via ASCOM

Discussion in 'Scripting and Programming' started by Ilya Shumov, May 15, 2020.

  1. Ilya Shumov

    Ilya Shumov Standard User

    Joined:
    May 15, 2020
    Messages:
    4
    Hello!

    I am developing ASCOM driver for a certain camera and our customer reports that they can't control camera gain in MaxIm DL. ASCOM driver log says that upon connecting MaxIm DL reads the following camera parameters:
    • CameraXSize
    • CameraYSize
    • MaxBinX
    • MaxBinY
    • PixelSizeX
    • PixelSizeY
    • CanAbortExposure
    • CanAsymmetricBin
    • CanGetCoolerPower
    • CanPulseGuide
    • CanSetCCDTemperature
    • CanStopExposure
    • Description
    • ElectronsPerADU
    • FullWellCapacity
    • HasShutter
    • MaxADU
    MaxIm DL doesn't read Gain, Gains, GainMin or GainMax parameter and ISO speed combobox is disabled:
    MaxIm DL ISO speed.png

    So my question is: how to make MaxIm DL aware of gain control availability and how to control it from the MaxIm DL?

    Thank you in advance!
     
  2. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    3,277
    Why aren't you implemening the camera gain in the ASCOM Camera Settings? Gain (and offset) of a camera is usually a precision calibration task that should be done at the factory and is camera-specific to the individual sensor.
    If this is a high gain vs low gain setting, consider implementing as the Readout Mode. If it is an analog value, again, likely should be in the camera drivers settings, not a normal user parameter.
     
  3. Ilya Shumov

    Ilya Shumov Standard User

    Joined:
    May 15, 2020
    Messages:
    4
    I did, it's just inconvenient to disconnect from camera and go to camera settings every time user wants to change gain, so I thought there is a better way. I'll check Readout modes then.
     
  4. Colin Haig

    Colin Haig Staff Member

    Joined:
    Oct 27, 2014
    Messages:
    3,277
    Ok, I understand why you'd want this now.
    Is this an analog type gain setting? eg 0-255 value? Or is it digital where there are preset values?
     
  5. Ilya Shumov

    Ilya Shumov Standard User

    Joined:
    May 15, 2020
    Messages:
    4
    It's 0-255 value.
    I tried to use ReadoutModes, but MaxIm DL doesn't read readout-related settings either. CanFastReadout, ReadoutModes - none of that...
     
  6. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    6,774
    Yes, MaxIm DL does support ReadoutModes - as you can verify using the ASCOM Camera Simulator V2.
     
  7. Ilya Shumov

    Ilya Shumov Standard User

    Joined:
    May 15, 2020
    Messages:
    4
    I connected MaxIm DL to ASCOM Camera V2 Simulator, enabled readout modes (and gain 0 to 9 too). "Readout Mode" combobox got disabled anyway.
    MaxIm DL readout 1.png MaxIm DL readout 2.png MaxIm DL readout 3.png
     
  8. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    6,774
    Oh, you are running and ancient version of MaxIm DL. You need to ugprade.
     

Share This Page