diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-24 23:35:50 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-24 23:35:50 -0400 |
commit | a68265544a1d2fd93ed39cb20667a6962533cec2 (patch) | |
tree | 817625cac1b0b466fca51142241929d8c09cf5dd /qolab/hardware | |
parent | a069c0fab77e2ac7bdf16e9069ef0149493f0df7 (diff) | |
download | qolab-a68265544a1d2fd93ed39cb20667a6962533cec2.tar.gz qolab-a68265544a1d2fd93ed39cb20667a6962533cec2.zip |
implemented switchToFastGrab and restorePriorToFastGrab for RigolDS1054z
Diffstat (limited to 'qolab/hardware')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index c735a01..566ec63 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -207,6 +207,31 @@ class RigolDS1054z(ScopeSCPI): def run(self): self.write(":RUN") + def restorePriorToFastGrab(self, chNum, old_config): + """Restore relevant channel/scope settings prior to fast grab tune up.""" + self.setMemoryDepth(old_config["DeviceConfig"]["MemoryDepth"]) + + def switchToFastGrab(self, chNum): + """Switch scope to the fastest mode for trace delivery. + + To be fast, it should aim to decrease data transfer time, + i.e. reduce number of transferred point. + It also need to be interface dependent. GPIB and USB are known + to be quite slow when compared to network connection. + + FIXME try to be smart about connection interface. + + Return + ------ + old_config : dictionary + old config with settings necessary to restore initial state + """ + + old_config = self.getConfig() + self.setMemoryDepth(3000) + + return old_config + def getRawWaveform( self, chNum, availableNpnts=None, maxRequiredPoints=None, decimate=True ): |