From e9a6a48fead03d3c59c44fa2295b2ffa82403593 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 2 Dec 2021 17:39:52 -0500 Subject: draft of getAllTraces for a scope --- qolab/hardware/scope/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qolab/hardware/scope/__init__.py') 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 -- cgit v1.2.3