aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/lockin/srs_sr865a.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/lockin/srs_sr865a.py')
-rw-r--r--qolab/hardware/lockin/srs_sr865a.py12
1 files changed, 11 insertions, 1 deletions
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 -------------')