diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-02 17:39:52 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-02 17:39:52 -0500 |
commit | e9a6a48fead03d3c59c44fa2295b2ffa82403593 (patch) | |
tree | f2218f2ad0e9014c468e0d6ad14b1068b92ee898 /qolab | |
parent | 60a196502ab650f3f20a5d70cfae2623f1df626a (diff) | |
download | qolab-e9a6a48fead03d3c59c44fa2295b2ffa82403593.tar.gz qolab-e9a6a48fead03d3c59c44fa2295b2ffa82403593.zip |
draft of getAllTraces for a scope
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index bbe2653..e05645f 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -15,6 +15,13 @@ class Scope: # but might be faster if parameters provided: less IO requests warnings.warn( 'this function is not implemented' ) + def getAllTraces(self, availableNpnts=None, maxRequiredPoints=None): + allTraces={} + for chNum in range(1, self.numberOfChannels+1): + allTraces[chNum] = self.getTrace(chNum, availableNpnts, maxRequiredPoints) + return( allTraces ) + + class ScopeSCPI(SCPIinstr, Scope): """ Do not instantiate directly, use |