def setValueInMillivolts(self, aChannel, aValue): """ Get value in millivolts """ try: return wrapper.dac_setValueInMillivolts(self.__device, aChannel, aValue) except Exception, e: raise AsDacError(str(e))
def __del__(self): try: wrapper.dac_close(self.__device) except Exception, e: pass
def __init__(self, aDacType, aBusNumber, aAddress, aVRef): try: self.__device = wrapper.dac_open(aDacType, aBusNumber, aAddress, aVRef) except Exception, e: raise AsDacError("Can't open dac port type "+str(aDacType)+\ " num "+str(aBusNumber))