aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope/__init__.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 09:54:30 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 09:54:30 -0500
commit89f4e35cfbeb7bd87389c5f4271469de3518e80e (patch)
tree9c99f33758cb8094b6c6781a31eeff3a8ebcb127 /qolab/hardware/scope/__init__.py
parent83a8bc275d0b46ee9ea9da6b3ad24dece6baab05 (diff)
downloadqolab-89f4e35cfbeb7bd87389c5f4271469de3518e80e.tar.gz
qolab-89f4e35cfbeb7bd87389c5f4271469de3518e80e.zip
proper exception
Diffstat (limited to 'qolab/hardware/scope/__init__.py')
-rw-r--r--qolab/hardware/scope/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py
index ff3eb18..9797efe 100644
--- a/qolab/hardware/scope/__init__.py
+++ b/qolab/hardware/scope/__init__.py
@@ -30,19 +30,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')