5.17_9111_AD_Set_Range
@ Description
This function is used to set the A/D range by means of writing data to the gain control register. The initial value of gain is '1' which is the default setting by the
Input Range (V) | Gain | Gain Code |
±10 V | X 1 | AD_B_10_V |
±5 V | X 2 | AD_B_5_V |
±2.5 V | X 4 | AD_B_2_5_V |
±1.25 V | X 8 | AD_B_1_25_V |
±0.625V | X 16 | AD_B_0_625_V |
@ Syntax
C/C++ (DOS)
U16 _9111_AD_Set_Range (U16 cardNo, U16 ADRange)
C/C++ (Windows 95)
U16 W_9111_AD_Set_Range (U16 cardNo, U16 ADRange)
Visual Basic (Windows 95)
W_9111_AD_Set_Range (ByVal cardNo As Integer, ByVal ADRange As Integer) As Integer
@ Argument |
|
cardNo: | The card number of |
ADRange: The programmable gain of A/D conversion, the possible values are: AD_B_10_V, AD_B_5_V, AD_B_2_5_V, AD_B_1_25_V, AD_B_0_625_V.
@Return Code
ERR_NoError
46 ∙ C/C++ Library