From c13de53d9aa408652e499ab3ea0807982ea9c0d1 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 26 Jul 2024 11:38:11 -0400 Subject: Simplified trace return variables for _basic scope and Rigol --- qolab/hardware/scope/rigolds1054z.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'qolab/hardware/scope/rigolds1054z.py') diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index c78b648..01cbae4 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -409,7 +409,7 @@ class RigolDS1054z(ScopeSCPI): trRaw.config["unit"] = "Count" trRaw.config["tags"]["Decimate"] = decimate trRaw.config["tags"]["rawChanConfig"] = rawChanCfg - return (trRaw, rawChanCfg) + return trRaw def getTimeTrace(self, rawChanCfg): timePerDiv = self.getTimePerDiv() @@ -440,12 +440,13 @@ class RigolDS1054z(ScopeSCPI): In short decimate=True is slower but more precise. """ - trRaw, rawChanCfg = self.getRawWaveform( + trRaw = self.getRawWaveform( chNum, availableNpnts=availableNpnts, maxRequiredPoints=maxRequiredPoints, decimate=decimate, ) + rawChanCfg = trRaw.config["tags"]["rawChanConfig"] VoltageOffset = self.getChanVoltageOffset(chNum) VoltsPerDiv = self.getChanVoltsPerDiv(chNum) tr = trRaw @@ -458,7 +459,7 @@ class RigolDS1054z(ScopeSCPI): tr.config["unit"] = "Volt" tr.config["tags"]["VoltageOffset"] = VoltageOffset tr.config["tags"]["VoltsPerDiv"] = VoltsPerDiv - return (tr, rawChanCfg) + return tr if __name__ == "__main__": -- cgit v1.2.3