diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-09 15:15:56 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-09 15:15:56 -0500 |
commit | f2d02880a3c0c8b4f7a0959d4e8e1e6eccc52518 (patch) | |
tree | 8890f371ad5a2cc31df7a031f93b2c6c145ecd58 /qolab/hardware/scope/sds1104x.py | |
parent | 4e4bff72bef3f67cb39f8bc6e066fd2c31edd1f5 (diff) | |
download | qolab-f2d02880a3c0c8b4f7a0959d4e8e1e6eccc52518.tar.gz qolab-f2d02880a3c0c8b4f7a0959d4e8e1e6eccc52518.zip |
redone configuration creation for a scope
Diffstat (limited to 'qolab/hardware/scope/sds1104x.py')
-rw-r--r-- | qolab/hardware/scope/sds1104x.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py index 6c7116c..afc68bb 100644 --- a/qolab/hardware/scope/sds1104x.py +++ b/qolab/hardware/scope/sds1104x.py @@ -13,6 +13,7 @@ class SDS1104X(ScopeSCPI): horizDivOnScreen = 14 def __init__(self, resource): super().__init__(resource) + self.config['Device model'] = 'SDS1104X' self.resource.read_termination='\n' self.numberOfChannels = 4 self.maxRequiredPoints = 1000; # desired number of points per channel, can return twice more @@ -138,9 +139,9 @@ class SDS1104X(ScopeSCPI): VoltsPerDiv = self.getChanVoltsPerDiv(chNum) tr = trRaw tr.values = trRaw.values * VoltsPerDiv * self.vertDivOnScreen/250 -VoltageOffset - tr.unit = 'Volt' - tr.tags['VoltageOffset'] = VoltageOffset - tr.tags['VoltsPerDiv'] = VoltsPerDiv + tr.config['unit'] = 'Volt' + tr.config['tags']['VoltageOffset'] = VoltageOffset + tr.config['tags']['VoltsPerDiv'] = VoltsPerDiv return(tr, availableNpnts) def getTimeTrace(self, availableNpnts=None, maxRequiredPoints=None): @@ -155,11 +156,11 @@ class SDS1104X(ScopeSCPI): tval = tval - timePerDiv * self.horizDivOnScreen/2 - trigDelay t = Trace('time') t.values = tval.reshape(tval.size,1) - t.unit = 'S' - t.tags['timePerDiv'] = timePerDiv - t.tags['trigDelay'] = trigDelay - t.tags['SampleRate'] = sampleRate - t.tags['sparsing'] = sparsing + t.config['unit'] = 'S' + t.config['tags']['timePerDiv'] = timePerDiv + t.config['tags']['trigDelay'] = trigDelay + t.config['tags']['SampleRate'] = sampleRate + t.config['tags']['sparsing'] = sparsing return(t) def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None): |