getfactorydark

This commit is contained in:
Ian Gulliver
2016-04-08 12:46:22 -07:00
parent 4c08bb586e
commit 61eb17ae84

View File

@@ -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