diff --git a/dump.py b/dump.py index 084a045..8e0ff88 100755 --- a/dump.py +++ b/dump.py @@ -38,6 +38,7 @@ LINES = [ ('Optical density', ilt.GetOpticalDensity, '%'), ('100% percent setting', ilt.Get100PercentVoltage, 'V'), ('Dark mode', lambda: ilt.DARK_NAMES[ilt.GetDarkMode()], ''), + ('Irradiance', ilt.GetIrradiance, ''), ] diff --git a/ilt1000.py b/ilt1000.py index 15fa21a..b9a25bd 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -26,9 +26,7 @@ class Saturated(Error): # TODO commands: # eraselogdata -# getdarkmode # getfactorydark -# getirradiance # getlogdata # getuserdark # set100perc @@ -157,3 +155,7 @@ class ILT1000(object): def GetDarkMode(self): return int(self._SendCommand('getdarkmode')) + + def GetIrradiance(self): + ret = self._SendCommand('getirradiance') + return float(ret) / 1000