diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-02 13:10:51 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-02 13:10:51 -0500 |
commit | 4035e1dfd9cc16fc4eb730cb51adf6a5963269bf (patch) | |
tree | bee7c779950a1cb0defa431644d5a53063594bdf /qolab/hardware/scope/__init__.py | |
parent | e30d8525409aa4d6554ff64485decc1be25d31c1 (diff) | |
download | qolab-4035e1dfd9cc16fc4eb730cb51adf6a5963269bf.tar.gz qolab-4035e1dfd9cc16fc4eb730cb51adf6a5963269bf.zip |
create a root package qolab
Diffstat (limited to 'qolab/hardware/scope/__init__.py')
-rw-r--r-- | qolab/hardware/scope/__init__.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py new file mode 100644 index 0000000..a323b8f --- /dev/null +++ b/qolab/hardware/scope/__init__.py @@ -0,0 +1,31 @@ +""" +Provide basic class to operate scope +Created by Eugeniy E. Mikhailov 2021/11/29 +""" +from qolab.hardware.scpi import SCPIinstr + +class Scope: + + # 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 __init__(self): + self.numberOfChannels = 0 + + def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None): + warnings.warn( 'this function is not implemented' ) + +class ScopeSCPI(SCPIinstr, Scope): + """ + Do not instantiate directly, use + rm = pyvisa.ResourceManager() + ScopeSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR')) + """ + pass + def __init__(self, resource): + SCPIinstr.__init__(self, resource) + Scope.__init__(self) + +from .sds1104x import SDS1104X + |