diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-01 10:37:39 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-01 10:37:39 -0500 |
commit | ff6bfa21ca561472b0ab9e7820382c5d410eab5d (patch) | |
tree | 8f6382ed076fbd623bee8754ef3525a3ecce3667 /hardware/scope/__init__.py | |
parent | 62e8e882ba3ab5710d6ebd1bb927a585e7fe1583 (diff) | |
download | qolab-ff6bfa21ca561472b0ab9e7820382c5d410eab5d.tar.gz qolab-ff6bfa21ca561472b0ab9e7820382c5d410eab5d.zip |
a deeper structure
Diffstat (limited to 'hardware/scope/__init__.py')
-rw-r--r-- | hardware/scope/__init__.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/hardware/scope/__init__.py b/hardware/scope/__init__.py new file mode 100644 index 0000000..e6b6573 --- /dev/null +++ b/hardware/scope/__init__.py @@ -0,0 +1,22 @@ +""" +Provide basic class to operate scope +Created by Eugeniy E. Mikhailov 2021/11/29 +""" +import scpi + +class Scope(scpi.SCPIinstr): + """ + Do not instantiate directly, use + rm = pyvisa.ResourceManager() + Scope(rm.open_resource('TCPIP::192.168.0.2::INSTR')) + """ + + # Minimal set of methods to be implemented by a scope. + # Should work with minimal arguments list + # but might be faster if parameters provided: less IO requests + + def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None): + warnings.warn( 'this function is not implemented' ) + +from .sds1104x import SDS1104X + |