diff options
-rw-r--r-- | qolab/hardware/scope/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index ff3eb18..e2f3e61 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -5,7 +5,6 @@ Created by Eugeniy E. Mikhailov 2021/11/29 from qolab.hardware.scpi import SCPIinstr from qolab.hardware.basic import BasicInstrument from qolab.data.trace import TraceSetSameX -from qolab.file_utils import get_next_data_file import yaml class Scope(BasicInstrument): @@ -30,19 +29,18 @@ class Scope(BasicInstrument): # but might be faster if parameters provided: less IO requests # old_trg_mode = self.getTriggerMode() # self.setTriggerMode('STOP'); # to get synchronous channels - warnings.warn( 'this function is not implemented' ) + raise NotImplementedError( 'getTrace function is not implemented' ) # if old_trg_mode != "STOP": # short speed up here with this check # self.setTriggerMode(old_trg_mode) def getTriggerMode(self): # we expect NORM, AUTO, SINGLE, STOP - warnings.warn( 'this function is not implemented' ) + raise NotImplementedError( 'getTriggerMode function is not implemented' ) def setTriggerMode(self, mode): # we expect NORM, AUTO, SINGLE, STOP - warnings.warn( 'this function is not implemented' ) - + raise NotImplementedError( 'setTriggerMode function is not implemented' ) def getAllTraces(self, availableNpnts=None, maxRequiredPoints=None, decimate=True): allTraces=TraceSetSameX('scope traces') |