aboutsummaryrefslogtreecommitdiff
path: root/lockin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lockin.py')
-rw-r--r--lockin.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/lockin.py b/lockin.py
deleted file mode 100644
index 3fc157b..0000000
--- a/lockin.py
+++ /dev/null
@@ -1,28 +0,0 @@
-"""
-provide basic class to operate Lock-in
-"""
-
-import pyvisa
-import scpi
-
-class LockIn(scpi.SCPIinstr):
- """
- Do not instantiate directly, use
- rm = pyvisa.ResourceManager()
- LockIn(rm.open_resource('TCPIP::192.168.0.2::INSTR'))
- """
- def __init__(self, resource):
- super().__init__(resource)
- self.resource.read_termination='\n'
-
-
-if __name__ == '__main__':
- print("testing")
- rm = pyvisa.ResourceManager()
- print(rm.list_resources())
- instr=rm.open_resource('TCPIP::192.168.0.51::INSTR')
- lckn = LockIn(instr)
- print(lckn.idn)
-
-
-