diff --git a/dump.py b/dump.py index 196ea51..120a25e 100755 --- a/dump.py +++ b/dump.py @@ -54,6 +54,7 @@ LINES = [ ('Ambient', ilt.GetAmbientCurrent, 'A'), ('Sample time', ilt.GetSampleSeconds, 's'), ('Detector bias', ilt.GetBiasVoltage, 'V'), + ('Peak', ilt.GetPeak, ''), ] diff --git a/ilt1000.py b/ilt1000.py index 5d82d44..c49ff8d 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -62,9 +62,6 @@ class CommandError(Error): # startintegrate # stopintegrate -# getpeak -# startpeak - # gettriggerin # settriggerout @@ -364,6 +361,12 @@ class ILT1000(object): def GetBiasVoltage(self): return float(self._SendCommand('getbias')) + def StartPeak(self): + self._SendCommandOrDie('startpeak') + + def GetPeak(self): + return float(self._SendCommand('getpeak')) + class _Row(object):