From 2fa622b4efb760754ef65309a4d5901e609a6e79 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 8 Apr 2016 11:09:38 -0700 Subject: [PATCH] get100perc --- dump.py | 1 + ilt1000.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dump.py b/dump.py index c583cfb..b574e46 100755 --- a/dump.py +++ b/dump.py @@ -35,6 +35,7 @@ LINES = [ ('Sensor voltage', ilt.GetSensorVoltage, 'V'), ('Transmission', ilt.GetTransmissionPercent, '%'), ('Optical density', ilt.GetOpticalDensity, '%'), + ('100% percent setting', ilt.Get100PercentVoltage, 'V'), ] diff --git a/ilt1000.py b/ilt1000.py index 6580497..4266795 100755 --- a/ilt1000.py +++ b/ilt1000.py @@ -26,7 +26,6 @@ class Saturated(Error): # TODO commands: # eraselogdata -# get100perc # getauxserialno # getdarkmode # getfactorydark @@ -137,3 +136,7 @@ class ILT1000(object): def GetOpticalDensity(self): ret = self._SendCommand('getod') return float(ret) / 100 + + def Get100PercentVoltage(self): + ret = self._SendCommand('get100perc') + return float(ret) / 1000000