From 8311963dc4c74c1c9b2780beb616b9691668779f Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 10 Dec 2021 08:53:30 -0500 Subject: added phase for reference --- qolab/hardware/lockin/__init__.py | 1 + qolab/hardware/lockin/srs_sr865a.py | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'qolab') diff --git a/qolab/hardware/lockin/__init__.py b/qolab/hardware/lockin/__init__.py index 04ce96e..122db04 100644 --- a/qolab/hardware/lockin/__init__.py +++ b/qolab/hardware/lockin/__init__.py @@ -9,6 +9,7 @@ class Lockin(BasicInstrument): self.config['Device model'] = 'Generic Lockin Without Hardware interface' self.config['FnamePrefix'] = 'lockin' self.deviceProperties = ['FreqInt', 'FreqExt', 'Harm', 'SinAmpl', 'SinOffset', + 'RefPhase', 'Sensetivity', 'TimeConstan', 'FilterSlope', 'EquivalentFileterBW']; # Minimal set of methods to be implemented. pass diff --git a/qolab/hardware/lockin/srs_sr865a.py b/qolab/hardware/lockin/srs_sr865a.py index 7fbb575..85a77e7 100644 --- a/qolab/hardware/lockin/srs_sr865a.py +++ b/qolab/hardware/lockin/srs_sr865a.py @@ -78,6 +78,11 @@ class SRS_SR865A(LockinSCPI): def setTimeBaseMode(self, val): rstr = self.write(f'TBMODE {val}') + def getRefPhase(self): + return(float(self.query(f'PHAS?'))) + + def setRefPhase(self, val): + rstr = self.write(f'PHAS {val}') if __name__ == '__main__': import pyvisa -- cgit v1.2.3