prsctrl.measurement.measurement.LockInHandler#

class LockInHandler(mode: str, lockin: LockInAmp, lockin_settings: LockInSettings)[source]#

Bases: object

Wrapper class for a lock-in amplifier, that abstracts some model-specific things like setting up a buffer, where the number of quantities, max. number of values and the available sample rates depend on the model.

Methods

set_measurement_time

Convert the target sample rate to one that is compatible with the device.

set_measurement_time(measurement_time_s, target_sample_rate_Hz=None)[source]#

Convert the target sample rate to one that is compatible with the device. Also calculates the number of values to be recorded for a given measurement time :param target_sample_rate_Hz: targeted sample rate, or ‘max’ to use the maximum for the given measurement time