spvctrl.spvctrl_interactive.measure_transient#

measure_transient(measurement_params: TspvSettings | str | Path, sample: Sample | str | None, name: str | None = None, **kwargs)[source]#

Measure a transient surface photovoltage with the connected devices.

Uses the global laser and osci devices. Data is cached to <data_dir_cache>/<date>_<name>/, then finalized (.tspv, csv and plots written next to the cached data), archived (if enough per-pulse files) and copied to the final data directories (settings.data_dir). The averaged transient is returned.

The setup info entry from the setup-info database (get_setup_info()) is recorded in the measurement metadata automatically, unless overridden with the setup_info kwarg.

Parameters:
  • measurement_params – All measurement settings, or a path to a yaml file with saved settings (e.g. the parameters.yaml written next to a previous measurement).

  • sample – Sample object, or its name as stored in the sample database (resolved via get_sample()), or a name not present in the database (recorded as plain string), or None.

  • name – Name of the measurement, used for the cache directory name. Defaults to ‘transient’.

  • kwargs – Passed on to spvctrl.measurement.measurement.measure_transient(), e.g. live_view=False.

Returns:

(data, columns) with columns [“t_s”, “U_spv_V”, “U_diode_V”].