From 61eb17ae84629c2c2c50933d8396893d3a2f8654 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 8 Apr 2016 12:46:22 -0700 Subject: [PATCH] getfactorydark --- ilt1000.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ilt1000.py b/ilt1000.py index 100043c..e28d95d 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -27,7 +27,6 @@ class Saturated(Error): # TODO commands: # eraselogdata -# getfactorydark # getlogdata # getuserdark # set100perc @@ -161,6 +160,13 @@ class ILT1000(object): def GetDarkMode(self): return int(self._SendCommand('getdarkmode')) + def GetFactoryDarkVoltages(self): + # SPEC ERROR + # Actual return value sample: + # R1 12149 9733 9251 R2 12476 10080 9604 R3 13940 11894 11435 + ret = self._SendCommand('getfactorydark') + return [float(x) / 1000000 for x in ret.split()] + def GetIrradiance(self): ret = self._SendCommand('getirradiance') return float(ret) / 1000