startintegrate, stopintegrate, getintegrate

This commit is contained in:
Ian Gulliver
2016-04-23 15:42:33 -07:00
parent 8effadeaa7
commit 37e92e42ed
2 changed files with 10 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ LINES = [
('Sample time', ilt.GetSampleSeconds, 's'),
('Detector bias', ilt.GetBiasVoltage, 'V'),
('Peak', ilt.GetPeak, ''),
('Integration', ilt.GetIntegrate, ''),
]

View File

@@ -58,10 +58,6 @@ class CommandError(Error):
# setfeedbackres
# getintegrate
# startintegrate
# stopintegrate
# gettriggerin
# settriggerout
@@ -368,6 +364,15 @@ class ILT1000(object):
def GetPeak(self):
return float(self._SendCommand('getpeak'))
def StartIntegrate(self):
self._SendCommandOrDie('startintegrate')
def StopIntegrate(self):
self._SendCommandOrDie('stopintegrate')
def GetIntegrate(self):
return float(self._SendCommand('getintegrate'))
class _Row(object):