From d03a5e695fa359734ab8bbd20d82070496da7efb Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:48:26 -0700 Subject: [PATCH] setsampletime, setsampletimetemp --- ilt1000.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ilt1000.py b/ilt1000.py index fd04455..a913092 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -46,9 +46,6 @@ class CommandError(Error): # setcalfactor # usecalfactortemp -# setsampletime -# setsampletimetemp - # getecal # getecaldate # setecal @@ -354,6 +351,12 @@ class ILT1000(object): def GetAmbientCurrent(self): return float(self._SendCommand('getambientlevel')) + def SetSampleSeconds(self, seconds=0): + self._SendCommandOrDie('setsampletime %d' % (seconds * 1000)) + + def SetSampleSecondsTemp(self, seconds=0): + self._SendCommandOrDie('setsampletimetemp %d' % (seconds * 1000)) + def GetSampleSeconds(self): ret = self._SendCommand('getsampletime') return float(ret) / 1000