示例#1
0
 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))
示例#2
0
 def __del__(self):
     try:
         wrapper.dac_close(self.__device)
     except Exception, e:
         pass
示例#3
0
 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))