diff options
Diffstat (limited to 'qolab/hardware/scope/rigolds1054z.py')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index 94eed25..598ad4a 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -5,7 +5,7 @@ Created by Eugeniy E. Mikhailov 2024/07/18 from qolab.hardware.basic import BasicInstrument from qolab.hardware.scpi import SCPI_PROPERTY from ._basic import ScopeSCPI, calcSparsingAndNumPoints -from qolab.data.trace import Trace, TraceXY +from qolab.data.trace import Trace import numpy as np import scipy.signal from pyvisa.errors import VisaIOError @@ -456,29 +456,6 @@ class RigolDS1054z(ScopeSCPI): tr.config["tags"]["VoltsPerDiv"] = VoltsPerDiv return (tr, rawChanCfg) - def getTrace( - self, chNum, availableNpnts=None, maxRequiredPoints=None, decimate=True - ): - old_run_status = self.getRun() - if old_run_status: # avoid unnecessary status change - self.setRun(False) # stop if currently running - self._waitUntillStop() - # to get synchronous channels - wfVoltage, rawChanCfg = self.getWaveform( - chNum, - availableNpnts=availableNpnts, - maxRequiredPoints=maxRequiredPoints, - decimate=decimate, - ) - t = self.getTimeTrace(rawChanCfg) - tr = TraceXY(f"Ch{chNum}") - tr.x = t - tr.y = wfVoltage - # restore scope to the before acquisition mode - if old_run_status: # avoid unnecessary status change - self.setRun(old_run_status) # start running if it was old run state - return tr - if __name__ == "__main__": import pyvisa |