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