diff options
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 + |