예제 #1
0
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
예제 #2
0
파일: AsAdc.py 프로젝트: xcthulhu/armadeus
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
예제 #3
0
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
예제 #4
0
 def __init__(self, aAdcType, aDeviceNum, aVRef):
     try:
         self.__device = wrapper.adc_open(aAdcType, aDeviceNum, aVRef)
     except Exception, e:
         raise AsAdcError("Can't open ADC port type "+str(aAdcType)+\
                             " num "+str(aDeviceNum))
예제 #5
0
파일: AsAdc.py 프로젝트: xcthulhu/armadeus
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
예제 #6
0
파일: AsAdc.py 프로젝트: xcthulhu/armadeus
 def __init__(self, aAdcType, aDeviceNum, aVRef):
     try:
         self.__device = wrapper.adc_open(aAdcType, aDeviceNum, aVRef)
     except Exception, e:
         raise AsAdcError("Can't open adc port type " + str(aAdcType) + " num " + str(aDeviceNum))