50
•
C/C++ Library
5.12 _9114_AD_Set_Range
@ Description
This function is used to set the A/D range by means of writing data to the
AD range control register. The initial value of gain is '1' which is the
default setting by PCI-9114 hardware. The following tables specify the
relationship between gain and input voltage ranges:
For PCI9114HG:
Input Range (V)
Gain
Gain Code
±
10 V
X 1
AD_B_10_V
±
1 V
X 10
AD_B_1_V
±
100m V
X 100
AD_B_0_1_V
±
10m V
X 1000
AD_B_0_01_V
For PCI9114DG:
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
@ Syntax
C/C++ (DOS)
U16 _9114_AD_Set_Range (U16 cardNo, U16 ADRange)
C/C++ (Windows 95)
U16 W_9114_AD_Set_Range (U16 cardNo, U16 ADRange)
Visual Basic (Windows 95)
W_9114_AD_Set_Range (ByVal cardNo As Integer, ByVal
ADRange As Integer) As Integer
@ Argument
cardNo:
The card number of PCI-9114 card initialized
ADRange:
The programmable gain of A/D conversion, the
possible values are: AD_B_10_V, AD_B_1_V,
AD_B_0_1_V, AD_B_0_01_V, AD_B_5_V, AD_B_2_5_V,
AD_B_1_25_V,
@ Return Code
ERR_NoError
Summary of Contents for NuDAQ PCI-9114DG
Page 1: ...NuDAQ P C I 9 1 1 4 D G H G Enhanced Multi Functions Data Acquisition Card User s Guide ...
Page 2: ......
Page 5: ......
Page 6: ......
Page 10: ...iv Contents Product Warranty Service 83 ...
Page 12: ......
Page 21: ...Installation 9 2 3 PCB Layout of PCI 9114 ...
Page 31: ...Registers Format 19 CN4 is MSB and CN0 is LSB ...
Page 36: ......
Page 50: ......
Page 56: ...44 C C Library the digital value Return Code ERR_NoError ...
Page 79: ...C C Library 67 ...
Page 94: ......