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))