diff --git a/dump.py b/dump.py index 99ef103..7097eab 100755 --- a/dump.py +++ b/dump.py @@ -56,6 +56,7 @@ LINES = [ ('Sample time', ilt.GetSampleSeconds, 's'), ('Detector bias', ilt.GetBiasVoltage, 'V'), ('Peak', ilt.GetPeak, ''), + ('Integration', ilt.GetIntegrate, ''), ] diff --git a/ilt1000.py b/ilt1000.py index c3330cc..be4eefc 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -58,10 +58,6 @@ class CommandError(Error): # setfeedbackres -# getintegrate -# startintegrate -# stopintegrate - # gettriggerin # settriggerout @@ -368,6 +364,15 @@ class ILT1000(object): def GetPeak(self): return float(self._SendCommand('getpeak')) + def StartIntegrate(self): + self._SendCommandOrDie('startintegrate') + + def StopIntegrate(self): + self._SendCommandOrDie('stopintegrate') + + def GetIntegrate(self): + return float(self._SendCommand('getintegrate')) + class _Row(object):