prsctrl.measurement.time_estimate.get_time_estimate_per_wavelength#

get_time_estimate_per_wavelength(devmg: DeviceManager, measurement_settings: PrsSettings, extra_wait_time_s=10) dict[str, float][source]#

Estimate the measurement time per wavelength with the given devices and settings.

The following devices will be regarded:

  • Monochromators, key starting with ‘monochromator’

  • Lock-in Amplifiers, key being ‘lock-in_<mode>’, where <mode> is the mode key configured in the measurement settings.

The time will be calculated for all modes separately and consists of:

  1. Time to set the probe light wavelength (monochromators)

  2. Wait time

  3. Measurement time

  4. Data transfer time (lock-in amplifiers)

The returned time is supposed be a upper-estimate, but should be within in 10% of the actual time.

Parameters:
  • devmg – Device manager

  • measurement_settings – The fully configured measurement settings, including the modes dictionaries.

  • extra_wait_time_s – Additional wait time for probe-light stability in seconds.

Returns:

Number of seconds a measurement step will take (step = at one wavelength) for each mode.