From ec8a81cd242882244e4af912544d344f732a0038 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:28:32 -0700 Subject: [PATCH] getsampletime --- dump.py | 1 + ilt1000.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dump.py b/dump.py index 1abf2f9..7374303 100755 --- a/dump.py +++ b/dump.py @@ -50,6 +50,7 @@ LINES = [ ('Factory dark', ilt.GetFactoryDarkVoltages, 'V'), ('User dark', ilt.GetUserDarkVoltages, 'V'), ('Ambient', ilt.GetAmbientCurrent, 'A'), + ('Sample time', ilt.GetSampleTime, 's'), ] diff --git a/ilt1000.py b/ilt1000.py index 7f88ddf..bcdf645 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -49,7 +49,6 @@ class CommandError(Error): # setcalfactor # usecalfactortemp -# getsampletime # setsampletime # setsampletimetemp @@ -346,6 +345,10 @@ class ILT1000(object): def GetAmbientCurrent(self): return float(self._SendCommand('getambientlevel')) + def GetSampleTime(self): + ret = self._SendCommand('getsampletime') + return float(ret) / 1000 + class _Row(object):