From 9e5768d7377ce84ad3cdcd9e221357c5e6719cb0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 9 Dec 2021 21:34:49 -0500 Subject: polished draft of lockin functions --- qolab/hardware/lockin/srs_sr865a.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'qolab/hardware/lockin/srs_sr865a.py') diff --git a/qolab/hardware/lockin/srs_sr865a.py b/qolab/hardware/lockin/srs_sr865a.py index 91e1978..1bddb6d 100644 --- a/qolab/hardware/lockin/srs_sr865a.py +++ b/qolab/hardware/lockin/srs_sr865a.py @@ -11,7 +11,15 @@ class SRS_SR865A(LockinSCPI): self.config['Device model']='SRS SR865A' self.resource.read_termination='\n' - """ Note: Fixed frequency and Center frequency (of sweep) are different in this model """ + def getFreqInt(self): + qstr = f'FreqInt?' + rstr = self.query(qstr) + return(float(rstr)) + + def setFreqInt(self, freq): + cstr = f'FreqInt {freq}' + rstr = self.write(cstr) + if __name__ == '__main__': import pyvisa @@ -20,6 +28,8 @@ if __name__ == '__main__': print(rm.list_resources()) instr=rm.open_resource('TCPIP::192.168.0.51::INSTR') lockin = SRS_SR865A(instr) + print('------ Header start -------------') print(str.join('\n', lockin.getHeader())) + print('------ Header ends -------------') -- cgit v1.2.3