photons.equipment.widgets.hrs_monochromator module

Widget for a HRS500M Monochromator from Princeton Instruments.

class photons.equipment.widgets.hrs_monochromator.HRSMonochromatorWorker(method, *args)[source]

Bases: Worker

Execute the call to the Princeton Instruments DLL in a worker thread.

process()[source]

The expensive or blocking operation to process. :rtype: None

Attention

You must override this method.

class photons.equipment.widgets.hrs_monochromator.HRSMonochromatorWidget(connection, *, parent=None)[source]

Bases: BaseEquipmentWidget

Widget for a HRS500M Monochromator from Princeton Instruments.

Parameters:
on_grating_index_changed(index)[source]

Slot for the Grating QComboBox.currentIndexChanged signal.

Parameters:

index (int) – The grating index [0, 1, 2].

Return type:

None

on_grating_position_changed(position)[source]

Slot for the HRSMonochromator.grating_position_changed signal.

Updates the Grating QComboBox without emitting the currentIndexChanged signal.

Parameters:

position (int) – The grating position [1, 2, 3].

Return type:

None

on_filter_index_changed(index)[source]

Slot for the Filter QComboBox.currentIndexChanged signal.

Parameters:

index (int) – The filter index [0, 1, 2, 3, 4, 5].

Return type:

None

on_filter_position_changed(position)[source]

Slot for the HRSMonochromator.filter_position_changed signal.

Updates the Filter QComboBox without emitting the currentIndexChanged signal.

Parameters:

position (int) – The filter position [1, 2, 3, 4, 5, 6].

Return type:

None

on_wavelength_editing_finished()[source]

Slot for the Wavelength QDoubleSpinBox.editingFinished signal.

Return type:

None

on_wavelength_changed(requested, encoder)[source]

Slot for the HRSMonochromator.wavelength_changed signal.

Parameters:
  • requested (float) – The requested wavelength.

  • encoder (float) – The wavelength that the encoder indicates that it is at.

Return type:

None

on_front_entrance_slit_editing_finished()[source]

Slot for the front entrance slit QSpinBox.editingFinished signal.

Return type:

None

on_front_entrance_slit_changed(width)[source]

Slot for the HRSMonochromator.front_entrance_slit_changed signal.

Parameters:

width (int) – The front entrance slit width, in um.

Return type:

None

on_front_exit_slit_editing_finished()[source]

Slot for the front exit slit QSpinBox.editingFinished signal.

Return type:

None

on_front_exit_slit_changed(width)[source]

Slot for the HRSMonochromator.front_exit_slit_changed signal.

Parameters:

width (int) – The front exit slit width, in um.

Return type:

None

on_home_front_entrance_slit()[source]

Home the front entrance slit.

Return type:

None

on_home_front_exit_slit()[source]

Home the front exit slit.

Return type:

None

on_home_filter_wheel()[source]

Home the filter wheel.

Return type:

None

on_thread_finished()[source]

Called when the worker thread is finished.

Return type:

None

notification_handler(*args, **kwargs)[source]

Handle notifications emitted by the HRSMonochromator Service.

Return type:

None

prepare_thread()[source]

Prepare to start a new worker thread.

Return type:

bool

Returns:

Whether a new thread can be started.