uReturn Code :

ERR_NoError, ERR_BoardNoInit

ERR_InvalidADChannel

5.9_9112_AD_Set_Range

uDescription

This function is used to set the A/D analog input range by means of writing data to the A/D range control register. There are two factors will change the analog input range - Gain and Input type.

The Gain can be choice from 0.5, 1, 2, 4, and 8 . The input type is either Bipolar or Unipolar.

The initial value of gain is '1‘ and input type is bipolar, which are pre-set by the PCI-9112 hardware. The relationship between analog input voltage range, gain and input mode are specified by following tables:

** this table is suitable for PCI-9112 card.

 

 

 

Input type

 

 

AD_INPUT

GAIN

 

(Bipolar or

Input Range

 

 

 

Unipolar)

 

 

AD_B_5_V

1

 

Bipolar

±5V

AD_B_2_5

2

 

Bipolar

±2.5V

_V

 

 

 

 

 

 

 

 

 

 

AD_B_1_2

4

 

Bipolar

±1.25V

5_V

 

 

 

 

 

 

 

 

 

 

AD_B_0_6

8

 

Bipolar

±0.625V

25_V

 

 

 

 

 

AD_U_10_

1

 

Unipolar

0V

~ 10V

V

 

 

 

 

 

 

 

 

 

 

 

AD_U_5_V

2

 

Unipolar

0V

~ 5V

AD_U_2_5

4

 

Unipolar

0V

~ 2.5V

_V

 

 

 

 

 

 

 

 

 

 

 

AD_U_1_2

8

 

Unipolar

0V

~ 1.25V

5_V

 

 

 

 

 

 

 

 

 

 

AD_B_10_

0.5

 

Bipolar

±10V

V

 

 

 

 

 

46 C/C++ Library

Page 54
Image 54
HP manual 9112ADSetRange, 46 ∙ C/C++ Library