The FocusMan Class

class CameraMan.FocusMan.FocusMan(device_mode=False, noSVE=None, **extra_args)

Bases: CameraMan.CameraMan.CameraMan

Focus Manager acts as fanout between the OCS/observer and the focus and alignment system consisting of the Donut and AOS applications, the Focus IB and the focus GFAs/cameras. The Donut/AOS loops starts automatically when (donut) configure is called. AOS will send results of the wavefront analysis to the FocusMan app. If inform_hexapod is true, the tweaks are send to the hexapod for an alignment adjustment. If accumulate_tweaks is true, tweaks received from the AOS since the last hexapod update will be accumulated. If False, only the last set of tweaks is sent to the hexapod Most of the standard functionality is provided by CameraMan

init()

Do FocusMan initialization and then call CameraMan init

configure(*a, **kw)

Configure FocusMan then call CameraMan application First argument in args list must be constants version

prepare_for_exposure(expid, flavor=None, **options)

Call donut prepare_for_exposure once at the start of a new exposure. Call CameraMan prepare_for_exposure every time Options for the donut app start with “donut_

tweak(tweaks, accumulate_tweaks=None, inform_hexapod=None)

Accept tweaks (from the AOS) When given, accumulate overwrites the self.accumulate_tweaks flag When given, inform_hexapod overwrites the self.inform_hexapod flag

get(parameter, *arguments, **options)

returns current value of parameter

set(**options)

set runtime parameters

send_aos_cmd(command, *args, **kwargs)

send a command to the aos application

send_donut_cmd(command, *args, **kwargs)

send a command to the donut application

send_focusib_cmd(command, *args, **kwargs)

send a command to the focus ib application