getvoltagestage

This commit is contained in:
Ian Gulliver
2016-04-23 15:40:33 -07:00
parent 038a4c272e
commit 8effadeaa7
2 changed files with 4 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ LINES = [
('Irradiance', ilt.GetIrradiance, ''),
('Irradiance threshold (low)', ilt.GetIrradianceThresholdLow, ''),
('Clock frequency', ilt.GetClockFrequencyHz, ''),
('Voltage stage', ilt.GetVoltageStage, ''),
('Feedback resistance', ilt.GetFeedbackResistanceOhm, 'Ω'),
('Feedback resistor', lambda: ilt.FEEDBACK_RES_NAMES[ilt.GetFeedbackResistor()], ''),
('Feedback resistor setting', lambda: ilt.FEEDBACK_RES_NAMES[ilt.GetFeedbackResistorSetting()], ''),

View File

@@ -65,8 +65,6 @@ class CommandError(Error):
# gettriggerin
# settriggerout
# getvoltagestage
# getvagc3
# getvped
# getvped
@@ -205,6 +203,9 @@ class ILT1000(object):
def GetSensorVoltage(self):
return float(self._SendCommand('getvoltage'))
def GetVoltageStage(self):
return int(self._SendCommand('getvoltagestage'))
def GetTransmissionPercent(self):
return float(self._SendCommand('gettrans'))