qcodes_contrib_drivers.drivers.Andor package

Submodules

qcodes_contrib_drivers.drivers.Andor.DU401 module

class qcodes_contrib_drivers.drivers.Andor.DU401.Andor_DU401(*args: Any, **kwargs: Any)[source]

Bases: Instrument

Instrument driver for the Andor DU401 BU2 CCD.

Parameters:
  • name – Instrument name.

  • dll_path – Path to the atmcd64.dll file. If not set, a default path is used.

  • camera_id – ID for the desired CCD.

  • setup – Flag for the setup of the CCD. If true, some default settings will be sent to the CCD.

serial_number

Serial number of the CCD.

head_model

Head model of the CCD.

firmware_version

Firmware version of the CCD.

firmware_build

Firmware build of the CCD.

x_pixels

Number of pixels on the x axis.

y_pixels

Number of pixels on the y axis.

close() None[source]

Irreversibly stop this instrument and free its resources.

Subclasses should override this if they have other specific resources to close.

get_idn() Dict[str, str | None][source]

Parse a standard VISA *IDN? response into an ID dict.

Even though this is the VISA standard, it applies to various other types as well, such as IPInstruments, so it is included here in the Instrument base class.

Override this if your instrument does not support *IDN? or returns a nonstandard IDN string. This string is supposed to be a comma-separated list of vendor, model, serial, and firmware, but semicolon and colon are also common separators so we accept them here as well.

Returns:

A dict containing vendor, model, serial, and firmware.

class qcodes_contrib_drivers.drivers.Andor.DU401.Spectrum(name: str, instrument: Andor_DU401, **kwargs)[source]

Bases: Parameter

Parameter class for a spectrum taken with an Andor CCD. The spectrum is saved in a list with the length being set by the number of pixels on the CCD.

Parameters:

name – Parameter name.

get_raw() List[int][source]

get_raw is called to perform the actual data acquisition from the instrument. This method should either be overwritten to perform the desired operation or alternatively for Parameter a suitable method is automatically generated if get_cmd is supplied to the parameter constructor. The method is automatically wrapped to provide a get method on the parameter instance.

set_raw(value)[source]

set_raw is called to perform the actual setting of a parameter on the instrument. This method should either be overwritten to perform the desired operation or alternatively for Parameter a suitable method is automatically generated if set_cmd is supplied to the parameter constructor. The method is automatically wrapped to provide a set method on the parameter instance.

class qcodes_contrib_drivers.drivers.Andor.DU401.atmcd64d(dll_path: str | None = None, verbose: bool = False)[source]

Bases: object

Wrapper class for the atmcd64.dll Andor library. The class has been tested for an Andor iDus DU401 BU2.

Parameters:
  • dll_path – Path to the atmcd64.dll file. If not set, a default path is used.

  • verbose – Flag for the verbose behaviour. If true, successful events are printed.

verbose

Flag for the verbose behaviour.

dll

WinDLL object for atmcd64.dll.

cooler_off() None[source]
cooler_on() None[source]
error_check(code, function_name='')[source]
get_acquired_data(size) List[int][source]
get_acquisition_timings() Tuple[float, float, float][source]
get_camera_handle(camera_index) int[source]
get_camera_serial_number() int[source]
get_detector() Tuple[int, int][source]
get_filter_mode() int[source]
get_hardware_version() Tuple[int, int, int, int, int, int][source]
get_head_model() str[source]
get_status() int[source]
get_temperature() int[source]
get_temperature_range() Tuple[int, int][source]
initialize(directory: str) None[source]
is_cooler_on() int[source]
set_accumulation_cycle_time(cycle_time: float) None[source]
set_acquisition_mode(mode: int) None[source]
set_current_camera(camera_handle: int) None[source]
set_exposure_time(exposure_time: float) None[source]
set_filter_mode(mode: int) None[source]
set_number_accumulations(number: int) None[source]
set_read_mode(mode: int) None[source]
set_shutter(typ: int, mode: int, closing_time: int, opening_time: int) None[source]
set_temperature(temperature: int) None[source]
set_trigger_mode(mode: int) None[source]
shut_down() None[source]
start_acquisition() None[source]
wait_for_acquisition() None[source]

Module contents