getpeak, startpeak
This commit is contained in:
1
dump.py
1
dump.py
@@ -54,6 +54,7 @@ LINES = [
|
|||||||
('Ambient', ilt.GetAmbientCurrent, 'A'),
|
('Ambient', ilt.GetAmbientCurrent, 'A'),
|
||||||
('Sample time', ilt.GetSampleSeconds, 's'),
|
('Sample time', ilt.GetSampleSeconds, 's'),
|
||||||
('Detector bias', ilt.GetBiasVoltage, 'V'),
|
('Detector bias', ilt.GetBiasVoltage, 'V'),
|
||||||
|
('Peak', ilt.GetPeak, ''),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -62,9 +62,6 @@ class CommandError(Error):
|
|||||||
# startintegrate
|
# startintegrate
|
||||||
# stopintegrate
|
# stopintegrate
|
||||||
|
|
||||||
# getpeak
|
|
||||||
# startpeak
|
|
||||||
|
|
||||||
# gettriggerin
|
# gettriggerin
|
||||||
# settriggerout
|
# settriggerout
|
||||||
|
|
||||||
@@ -364,6 +361,12 @@ class ILT1000(object):
|
|||||||
def GetBiasVoltage(self):
|
def GetBiasVoltage(self):
|
||||||
return float(self._SendCommand('getbias'))
|
return float(self._SendCommand('getbias'))
|
||||||
|
|
||||||
|
def StartPeak(self):
|
||||||
|
self._SendCommandOrDie('startpeak')
|
||||||
|
|
||||||
|
def GetPeak(self):
|
||||||
|
return float(self._SendCommand('getpeak'))
|
||||||
|
|
||||||
|
|
||||||
class _Row(object):
|
class _Row(object):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user