photons.equipment.hrs_monochromator module

HRS500M Monochromator from Princeton Instruments.

class photons.equipment.hrs_monochromator.HRSMonochromator(record, **kwargs)[source]

Bases: BaseEquipment

HRS500M Monochromator from Princeton Instruments.

Parameters:
  • record (EquipmentRecord) – The equipment record.

  • **kwargs – Keyword arguments. Can be specified as attributes of an XML element in a configuration file (with the tag of the element equal to the alias of record).

connection: PrincetonInstruments
FRONT_ENTRANCE_SLIT = 2
FRONT_EXIT_SLIT = 3
grating_position_changed: SignalInstance
filter_position_changed: SignalInstance
wavelength_changed: SignalInstance
front_entrance_slit_changed: SignalInstance
front_exit_slit_changed: SignalInstance
filter_info()[source]

Returns a description of the filters that are installed in each position.

The keys are the position numbers of each filter.

Return type:

dict[int, str]

get_filter_position()[source]

Returns the filter position, in the range [1, 6].

Return type:

int

get_front_entrance_slit_width()[source]

Returns the front entrance slit width (in microns).

Return type:

int

get_front_exit_slit_width()[source]

Returns the front exit slit width (in microns).

Return type:

int

get_grating_position()[source]

Returns the current grating position. Either 1, 2 or 3.

Return type:

int

get_wavelength()[source]

Returns the current wavelength (in nm).

Return type:

float

grating_info()[source]

Returns the density and blaze values for each grating.

The keys are the position numbers of each grating.

Return type:

dict[int, dict[str, str]]

home_filter_wheel()[source]

Home the filter wheel.

Return type:

int

Returns:

The filter wheel position after homing.

home_front_entrance_slit()[source]

Home the front entrance slit.

Return type:

int

Returns:

The slit width (in microns) after homing.

home_front_exit_slit()[source]

Home the front exit slit.

Return type:

int

Returns:

The slit width (in microns) after homing.

set_filter_position(position)[source]

Set the filter wheel position.

Parameters:

position (int) – The filter wheel position, in the range [1, 6].

Return type:

int

Returns:

The actual filter wheel position after it has finished moving.

set_front_entrance_slit_width(um)[source]

Set the front entrance slit width.

Parameters:

um (int) – The slit width (in microns).

Return type:

int

Returns:

The actual slit width (in microns) after it has finished moving.

set_front_exit_slit_width(um)[source]

Set the front exit slit width.

Parameters:

um (int) – The slit width (in microns).

Return type:

int

Returns:

The actual slit width (in microns) after it has finished moving.

set_grating_position(position)[source]

Set the grating position.

Parameters:

position (int) – The grating position. Either 1, 2 or 3.

Return type:

int

Returns:

The actual grating position after it has finished moving.

set_wavelength(nm)[source]

Set the wavelength.

Parameters:

nm (float) – The wavelength (in nm).

Return type:

float

Returns:

The actual wavelength (in nm) after it has finished moving.