diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-10 08:53:30 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-10 08:53:30 -0500 |
commit | 8311963dc4c74c1c9b2780beb616b9691668779f (patch) | |
tree | b62d92692b748a74eba83cadd6eb2125eea09296 /qolab | |
parent | 16b9771d4f4308bd8e68d56e071e8b8134a1cc69 (diff) | |
download | qolab-8311963dc4c74c1c9b2780beb616b9691668779f.tar.gz qolab-8311963dc4c74c1c9b2780beb616b9691668779f.zip |
added phase for reference
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/lockin/__init__.py | 1 | ||||
-rw-r--r-- | qolab/hardware/lockin/srs_sr865a.py | 5 |
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 |