startintegrate, stopintegrate, getintegrate
This commit is contained in:
1
dump.py
1
dump.py
@@ -56,6 +56,7 @@ LINES = [
|
|||||||
('Sample time', ilt.GetSampleSeconds, 's'),
|
('Sample time', ilt.GetSampleSeconds, 's'),
|
||||||
('Detector bias', ilt.GetBiasVoltage, 'V'),
|
('Detector bias', ilt.GetBiasVoltage, 'V'),
|
||||||
('Peak', ilt.GetPeak, ''),
|
('Peak', ilt.GetPeak, ''),
|
||||||
|
('Integration', ilt.GetIntegrate, ''),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
13
ilt1000.py
13
ilt1000.py
@@ -58,10 +58,6 @@ class CommandError(Error):
|
|||||||
|
|
||||||
# setfeedbackres
|
# setfeedbackres
|
||||||
|
|
||||||
# getintegrate
|
|
||||||
# startintegrate
|
|
||||||
# stopintegrate
|
|
||||||
|
|
||||||
# gettriggerin
|
# gettriggerin
|
||||||
# settriggerout
|
# settriggerout
|
||||||
|
|
||||||
@@ -368,6 +364,15 @@ class ILT1000(object):
|
|||||||
def GetPeak(self):
|
def GetPeak(self):
|
||||||
return float(self._SendCommand('getpeak'))
|
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):
|
class _Row(object):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user