aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope/rigolds1054z.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/scope/rigolds1054z.py')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index 6ac51c5..8706cf1 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -280,9 +280,9 @@ class RigolDS1054z(ScopeSCPI):
sparsing = rawChanCfg["sparsing"]
Npnts = rawChanCfg["Npnts"]
ind = np.linspace(0, Npnts - 1, Npnts)
- tval = (ind - rawChanCfg["xreference"]) * rawChanCfg[
- "xincrement"
- ] * sparsing - rawChanCfg["xorigin"]
+ dx = rawChanCfg["xincrement"]
+ xorig = rawChanCfg["xorigin"]
+ tval = (ind - rawChanCfg["xreference"]) * dx * sparsing + xorig
t = Trace("time")
t.values = tval.reshape(tval.size, 1)
t.config["unit"] = "S"