getpeak, startpeak

This commit is contained in:
Ian Gulliver
2016-04-23 15:38:50 -07:00
parent b9e8ba04bf
commit 038a4c272e
2 changed files with 7 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ LINES = [
('Ambient', ilt.GetAmbientCurrent, 'A'),
('Sample time', ilt.GetSampleSeconds, 's'),
('Detector bias', ilt.GetBiasVoltage, 'V'),
('Peak', ilt.GetPeak, ''),
]

View File

@@ -62,9 +62,6 @@ class CommandError(Error):
# startintegrate
# stopintegrate
# getpeak
# startpeak
# gettriggerin
# settriggerout
@@ -364,6 +361,12 @@ class ILT1000(object):
def GetBiasVoltage(self):
return float(self._SendCommand('getbias'))
def StartPeak(self):
self._SendCommandOrDie('startpeak')
def GetPeak(self):
return float(self._SendCommand('getpeak'))
class _Row(object):