qcodes_contrib_drivers.drivers.Shamrock package

Submodules

qcodes_contrib_drivers.drivers.Shamrock.SR750 module

class qcodes_contrib_drivers.drivers.Shamrock.SR750.ShamrockCIF(dll_path: str | None = None, verbose: bool = False)[source]

Bases: object

Wrapper class for the ShamrockCIF.dll library.

The class has been tested for a Shamrock SR750.

Parameters:
  • dll_path – Path to the ShamrockCIF.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 ShamrockCIF.dll.

close()[source]
error_check(code, function_name='')[source]
get_calibration(device, number_pixels)[source]
get_grating(device)[source]
get_grating_info(device, grating)[source]
get_number_devices()[source]
get_number_gratings(device)[source]
get_number_pixels(device)[source]
get_pixel_width(device)[source]
get_serial_number(device)[source]
get_slit(device)[source]
get_wavelength(device)[source]
get_wavelength_limits(device, grating)[source]
initialize()[source]
set_grating(device, grating)[source]
set_number_pixels(device, number_pixels)[source]
set_pixel_width(device, width)[source]
set_slit(device, width)[source]
set_wavelength(device, wavelength)[source]
class qcodes_contrib_drivers.drivers.Shamrock.SR750.Shamrock_SR750(*args: Any, **kwargs: Any)[source]

Bases: Instrument

Instrument driver for the Shamrock SR750 spectrometer.

Parameters:
  • name – Instrument name.

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

  • device_id – ID for the desired spectrometer.

  • ccd_number_pixels – Number of pixels on the connected CCD.

  • ccd_pixel_width – Pixel width on the connected CCD.

ShamrockCIF

DLL wrapper for ShamrockCIF.dll

device_id

Spectrometer device ID.

serial_number

Serial number of the spectrometer.

number_gratings

Number of gratings on the spectrometer.

close()[source]

Irreversibly stop this instrument and free its resources.

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

get_idn()[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.

Module contents