コード例 #1
0
ファイル: AsAdc.py プロジェクト: pblottiere/armadeus
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
コード例 #2
0
ファイル: AsAdc.py プロジェクト: xcthulhu/armadeus
 def getValueInMillivolts(self, aChannel):
     """ Get value in millivolts
     """
     try:
         return wrapper.getValueInMillivolts(self.__device, aChannel)
     except Exception, e:
         raise AsAdcError(str(e))
コード例 #3
0
ファイル: AsAdc.py プロジェクト: pblottiere/armadeus
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
コード例 #4
0
ファイル: AsAdc.py プロジェクト: pblottiere/armadeus
 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))
コード例 #5
0
ファイル: AsAdc.py プロジェクト: xcthulhu/armadeus
 def __del__(self):
     try:
         wrapper.adc_close(self.__device)
     except Exception, e:
         pass
コード例 #6
0
ファイル: AsAdc.py プロジェクト: xcthulhu/armadeus
 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))