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