getsampletime

This commit is contained in:
Ian Gulliver
2016-04-23 15:28:32 -07:00
parent 8ae8f34788
commit ec8a81cd24
2 changed files with 5 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ LINES = [
('Factory dark', ilt.GetFactoryDarkVoltages, 'V'),
('User dark', ilt.GetUserDarkVoltages, 'V'),
('Ambient', ilt.GetAmbientCurrent, 'A'),
('Sample time', ilt.GetSampleTime, 's'),
]

View File

@@ -49,7 +49,6 @@ class CommandError(Error):
# setcalfactor
# usecalfactortemp
# getsampletime
# setsampletime
# setsampletimetemp
@@ -346,6 +345,10 @@ class ILT1000(object):
def GetAmbientCurrent(self):
return float(self._SendCommand('getambientlevel'))
def GetSampleTime(self):
ret = self._SendCommand('getsampletime')
return float(ret) / 1000
class _Row(object):