aboutsummaryrefslogtreecommitdiff
path: root/qolab/test/test_scope_sds1104x.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-05-27 23:08:46 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-05-27 23:29:36 -0400
commitf66c475ed89ab125cff573ffa692e3d29a596fd5 (patch)
treeade33dc44df37dce5347575831aa999284bc907a /qolab/test/test_scope_sds1104x.py
parent69357a5629221c088dd6ac90037c64cc05324e4b (diff)
downloadqolab-f66c475ed89ab125cff573ffa692e3d29a596fd5.tar.gz
qolab-f66c475ed89ab125cff573ffa692e3d29a596fd5.zip
renamed test to example, to avoid spooking `pytest`
Diffstat (limited to 'qolab/test/test_scope_sds1104x.py')
-rw-r--r--qolab/test/test_scope_sds1104x.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/qolab/test/test_scope_sds1104x.py b/qolab/test/test_scope_sds1104x.py
deleted file mode 100644
index c5c890f..0000000
--- a/qolab/test/test_scope_sds1104x.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import pyvisa
-from qolab.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()
-