diff options
Diffstat (limited to 'qolab/hardware/scope/sds1104x.py')
-rw-r--r-- | qolab/hardware/scope/sds1104x.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py index 57323e1..d5b109d 100644 --- a/qolab/hardware/scope/sds1104x.py +++ b/qolab/hardware/scope/sds1104x.py @@ -128,8 +128,8 @@ class SDS1104X(ScopeSCPI): VoltsPerDiv = self.getChanVoltsPerDiv(chNum) tr = trRaw tr.values = trRaw.values * VoltsPerDiv * self.vertDivOnScreen/250 -VoltageOffset - tr.attributes['VoltageOffset'] = VoltageOffset - tr.attributes['VoltsPerDiv'] = VoltsPerDiv + tr.tags['VoltageOffset'] = VoltageOffset + tr.tags['VoltsPerDiv'] = VoltsPerDiv return(tr, availableNpnts) def getTimeTrace(self, availableNpnts=None, maxRequiredPoints=None): @@ -145,10 +145,10 @@ class SDS1104X(ScopeSCPI): t = Trace('time') t.values = tval t.unit = 'S' - t.attributes['timePerDiv'] = timePerDiv - t.attributes['trigDelay'] = trigDelay - t.attributes['SampleRate'] = sampleRate - t.attributes['sparsing'] = sparsing + t.tags['timePerDiv'] = timePerDiv + t.tags['trigDelay'] = trigDelay + t.tags['SampleRate'] = sampleRate + t.tags['sparsing'] = sparsing return(t) def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None): |