aboutsummaryrefslogtreecommitdiff
path: root/test/test_scope_sds1104x.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-02 13:10:51 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-02 13:10:51 -0500
commit4035e1dfd9cc16fc4eb730cb51adf6a5963269bf (patch)
treebee7c779950a1cb0defa431644d5a53063594bdf /test/test_scope_sds1104x.py
parente30d8525409aa4d6554ff64485decc1be25d31c1 (diff)
downloadqolab-4035e1dfd9cc16fc4eb730cb51adf6a5963269bf.tar.gz
qolab-4035e1dfd9cc16fc4eb730cb51adf6a5963269bf.zip
create a root package qolab
Diffstat (limited to 'test/test_scope_sds1104x.py')
-rw-r--r--test/test_scope_sds1104x.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/test_scope_sds1104x.py b/test/test_scope_sds1104x.py
deleted file mode 100644
index ef60a38..0000000
--- a/test/test_scope_sds1104x.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import pyvisa
-from hardware.scope import SDS1104X
-
-if __name__ == '__main__':
- print("Testing SDS1104X")
- rm = pyvisa.ResourceManager()
- print(rm.list_resources())
- instr=rm.open_resource('TCPIP::192.168.0.61::INSTR')
- scope = SDS1104X(instr)
- print(f'ID: {scope.idn}')
- print(f'Ch1 mean: {scope.mean(1)}')
- print(f'Ch1 available points: {scope.getAvailableNumberOfPoints(1)}')
- print(f'Sample Rate: {scope.getSampleRate()}')
- print(f'Time per Div: {scope.getTimePerDiv()}')
- print(f'Ch1 Volts per Div: {scope.getChanVoltsPerDiv(1)}')
- print(f'Ch1 Voltage Offset: {scope.getChanOffset(1)}')
- ch1 = scope.getTrace(1)
- ch1.plot()
-