aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/lockin
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/lockin')
-rw-r--r--qolab/hardware/lockin/__init__.py1
-rw-r--r--qolab/hardware/lockin/srs_sr865a.py5
2 files changed, 6 insertions, 0 deletions
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