From 37e92e42ed13d59ebf453027adc33b52422453d0 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:42:33 -0700 Subject: [PATCH] startintegrate, stopintegrate, getintegrate --- dump.py | 1 + ilt1000.py | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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):