From 038a4c272ef3a0894ce81314ab2fd94d528a3ebf Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:38:50 -0700 Subject: [PATCH] getpeak, startpeak --- dump.py | 1 + ilt1000.py | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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):