diff options
Diffstat (limited to 'ue9qol.py')
-rw-r--r-- | ue9qol.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -21,8 +21,14 @@ class UE9qol: # fixing missing slope for gain '0' c['AINSlopes']['0']= 0.0000775030 - def getInputCh(self, chNum): - return self.daq.getAIN(chNum) + def getInputCh(self, chNum, BipGain = 8): + # BipGain = 8 -> bipolar range (-5V, +5V) gain 1 + # UE9 default BipGain = 0 -> signal range (0V, +5V) gain 1 + # other BipGain could be: + # 0 = Unipolar Gain 1, 1 = Unipolar Gain 2, + # 2 = Unipolar Gain 4, 3 = Unipolar Gain 8, + # 8 = Bipolar Gain 1 + return self.daq.getAIN(chNum, BipGain = BipGain) def setOutputCh(self, chNum=None, volts=None): if chNum == None or volts == None: |