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:
SettingsClassMethods
Set - time constant - sensitivity - filter slope - sync filter - reserve - reference source - reference trigger setting - frequency
Convenience wrapper for dataclasses.asdict(self)
Recursively construct a SettingsClass from a dictionary.
load_yamlsave_yamlAttributes
The name of the auxiliary port that is used to measure the DC intensity
filter_slopefrequency_HzThe source of the reference frequency
reference_triggerreservesample_rate_Hzsensitivity_voltsync_filtertime_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