aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qolab/hardware/scope/rigolds1054z.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index 924ad33..6b0a918 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -280,7 +280,7 @@ class RigolDS1054z(ScopeSCPI):
In short decimate=True is slower but more precise.
"""
- trRaw, availableNpnts, Npnts = self.getRawWaveform(
+ trRaw, rawChanCfg = self.getRawWaveform(
chNum,
availableNpnts=availableNpnts,
maxRequiredPoints=maxRequiredPoints,
@@ -289,13 +289,12 @@ class RigolDS1054z(ScopeSCPI):
VoltageOffset = self.getChanVoltageOffset(chNum)
VoltsPerDiv = self.getChanVoltsPerDiv(chNum)
tr = trRaw
- tr.values = (
- trRaw.values * VoltsPerDiv * self.vertDivOnScreen / 250 - VoltageOffset
- )
+ tr.values = (trRaw.values - rawChanCfg['yreference'] - rawChanCfg['yorigin']) * rawChanCfg['yincrement']
+
tr.config["unit"] = "Volt"
tr.config["tags"]["VoltageOffset"] = VoltageOffset
tr.config["tags"]["VoltsPerDiv"] = VoltsPerDiv
- return (tr, availableNpnts)
+ return (tr, rawChanCfg)
def getTrace(
self, chNum, availableNpnts=None, maxRequiredPoints=None, decimate=True