Beispiel #1
0
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
Beispiel #2
0
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
Beispiel #3
0
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
Beispiel #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))
Beispiel #5
0
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
Beispiel #6
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))