From 462094f26a02892fb19651d1b34405185efd24dc Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 23 Apr 2016 15:21:54 -0700 Subject: [PATCH] getambientlevel --- dump.py | 1 + ilt1000.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dump.py b/dump.py index c66f887..56c0943 100755 --- a/dump.py +++ b/dump.py @@ -48,6 +48,7 @@ LINES = [ ('Feedback resistance', ilt.GetFeedbackResistanceOhm, 'Ω'), ('Factory dark', ilt.GetFactoryDarkVoltages, 'V'), ('User dark', ilt.GetUserDarkVoltages, 'V'), + ('Ambient', ilt.GetAmbientCurrent, 'A'), ] diff --git a/ilt1000.py b/ilt1000.py index be631b0..282f9c1 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -34,7 +34,6 @@ class CommandError(Error): # getflash # clearambientlevel -# getambientlevel # setambientlevel # getirrthresholdlow @@ -67,7 +66,7 @@ class CommandError(Error): # getintegrate # startintegrate -# topintegrate +# stopintegrate # getpeak # startpeak @@ -349,6 +348,9 @@ class ILT1000(object): def SetFriendlyName(self, name): self._SendCommandOrDie('setfriendlyname %s' % name) + def GetAmbientCurrent(self): + return float(self._SendCommand('getambientlevel')) + class _Row(object):