The focus command is usually executed in the AzCamConsole “blue” window.
focus.command(parameters…) where the available command methods are listed below.
Parameters (listed at the end of the documentation below) may be changed from the command line as: focus.number_exposures=7.
Focus class for focusing a camera.
Either the telescope or instrument may be moved for focus adjustment. May be used as a server or client script. The focus sequence performed is: — expose — move focus — shift detector (2x last time) — <repeat above steps> — readout — return to starting focus position — save image
Abort focus exposure.
Number of rows to shift detector for each focus step
Delays until focus stops moving.
Delay may be set to appropriate value for each focus mechanism.
current focus position
Number of focus steps between each exposure in a frame
Number of exposures in focus sequence
Reset focus object to default values.
run(exposure_time='prompt', number_exposures='prompt', focus_step='prompt', detector_shift='prompt')¶
Execute the focus script. Parameters can be “default”, “prompt”, or a value. Default values are used in focus.set_pars() was previously called. :param number_exposures: Number of exposures in focus sequence. :param focus_steps: Number of focus steps between each exposure in a frame. :param detector_shift: Number of rows to shift detector for each focus step. :param exposuretime: Exposure time i seconds. :return: None
set_pars(exposure_time, number_exposures=7, focus_step=30, detector_shift=10)¶
Set focus related parameters.