dlab.diagnostics.ui.phase_lock_window module

class dlab.diagnostics.ui.phase_lock_window.AvaspecPhaseLockWindow(*args: Any, **kwargs: Any)[source]

Bases: QWidget

Phase locking control window using Avaspec spectrometer and PiezoJena stage.

closeEvent(event) None[source]
get_current_phase() float[source]

Get the most recent unwrapped phase value.

get_current_voltage() float[source]

Get current piezo voltage.

get_phase_average(duration_s: float) tuple[float, float][source]

Get average and std of phase over specified duration.

is_locked() bool[source]

Check if phase lock is active.

set_target(target_rad: float) None[source]

Set the phase lock target.

class dlab.diagnostics.ui.phase_lock_window.AvaspecThread(*args: Any, **kwargs: Any)[source]

Bases: QThread

Spectrometer acquisition thread.

data_ready

alias of object

error

alias of str

run() None[source]
stop() None[source]
class dlab.diagnostics.ui.phase_lock_window.ControlThread(*args: Any, **kwargs: Any)[source]

Bases: QThread

PID control thread for phase locking via piezo stage.

run() None[source]
update_status

alias of float