From 26c99d834fcc244aa82ba6cf69f01f3fa8dd94f6 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:30:55 -0700 Subject: [PATCH] getbias --- dump.py | 3 ++- ilt1000.py | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dump.py b/dump.py index 7374303..0578dd1 100755 --- a/dump.py +++ b/dump.py @@ -50,7 +50,8 @@ LINES = [ ('Factory dark', ilt.GetFactoryDarkVoltages, 'V'), ('User dark', ilt.GetUserDarkVoltages, 'V'), ('Ambient', ilt.GetAmbientCurrent, 'A'), - ('Sample time', ilt.GetSampleTime, 's'), + ('Sample time', ilt.GetSampleSeconds, 's'), + ('Detector bias', ilt.GetBiasVoltage, 'V'), ] diff --git a/ilt1000.py b/ilt1000.py index bcdf645..d984262 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -52,8 +52,6 @@ class CommandError(Error): # setsampletime # setsampletimetemp -# getbias - # getecal # getecaldate # setecal @@ -345,10 +343,13 @@ class ILT1000(object): def GetAmbientCurrent(self): return float(self._SendCommand('getambientlevel')) - def GetSampleTime(self): + def GetSampleSeconds(self): ret = self._SendCommand('getsampletime') return float(ret) / 1000 + def GetBiasVoltage(self): + return float(self._SendCommand('getbias')) + class _Row(object):