spvctrl.measurement.settings#

Measurement settings for transient SPV measurements.

You can use the dataclasses.asdict(<settings class>) to convert a settings object to a dictionary.

The settings follow a two-level approach:

  • “Easy mode”: the general parameters MeasurementParameters.acquisition_time_s and MeasurementParameters.pulse_interval_s are optional convenience parameters. If given, TspvSettings.prepare() resolves them to concrete device settings: the target pulse interval is converted to a laser frequency divider (the actual interval is equal or larger) and the acquisition time, together with the sampling rate, is converted to a record length and segment size for the oscilloscope. The resolved values are recorded in the measurement metadata.

  • “Expert mode”: the device-specific settings classes OpoSettings and GageScopeAcquisitionSettings can be set explicitly instead (frequency divider, sampling rate, segment size, pre-trigger depth). The validation raises an error on conflicting parameters.

Module attributes

BASE_LASER_REPETITION_RATE_HZ

Base repetition rate of the EKSPLA laser in Hz, the actual rate is this value divided by the frequency divider

DEFAULT_SAMPLING_RATE_HZ

Sampling rate in Hz used to resolve a sampling rate of 'max' when the oscilloscope capabilities can not be queried (e.g. dummy devices).

SamplingRateSpec

Sampling rate in Hz (an integer number of Hz), or 'max' for the highest supported sampling rate

Classes

GageScopeAcquisitionSettings

Acquisition settings for the Gage CompuScope oscilloscope.

MeasurementParameters

General measurement parameters.

OpoSettings

Settings for the EKSPLA OPO laser.

TspvSettings

All settings for a transient surface-photovoltage-type measurement.