prsctrl.measurement.settings.LockInSettings#

class LockInSettings(time_constant_s: float = 1, sensitivity_volt: float = 5e-05, filter_slope: float = 12, sync_filter: float = 1, reserve: str = 'Normal', reference: str = 'External', reference_trigger: str = 'Rising Edge', frequency_Hz: float | None = None, sample_rate_Hz: float = 128, aux_DC: str = 'Aux In 1')[source]#

Bases: SettingsClass

Methods

apply

Set - time constant - sensitivity - filter slope - sync filter - reserve - reference source - reference trigger setting - frequency

as_dict

Convenience wrapper for dataclasses.asdict(self)

from_dict

Recursively construct a SettingsClass from a dictionary.

load_yaml

save_yaml

Attributes

aux_DC

The name of the auxiliary port that is used to measure the DC intensity

filter_slope

frequency_Hz

reference

The source of the reference frequency

reference_trigger

reserve

sample_rate_Hz

sensitivity_volt

sync_filter

time_constant_s

apply(device: LockInAmp)[source]#

Set - time constant - sensitivity - filter slope - sync filter - reserve - reference source - reference trigger setting - frequency

as_dict() dict#

Convenience wrapper for dataclasses.asdict(self)

aux_DC: str = 'Aux In 1'#

The name of the auxiliary port that is used to measure the DC intensity

classmethod from_dict(data: dict)#

Recursively construct a SettingsClass from a dictionary. If the value of a field is another SettingsClass, from_dict will be called for that field as well. Handled are: - SettingsClass - list[SettingsClass] - dict[<any>, SettingsClass] - all of the above as Optional

Raises:
  • ValueError – If data contains a value that has the wrong type for the field of cls (ONLY if the type is a subclass of SettingsClass! Other types are not enforced)

  • KeyError – If data contains a key that is not a field name of cls

reference: str = 'External'#

The source of the reference frequency