9113_Ad_Set_Range - NuDAQ PCI- 9113A User Manual

32 channels isolated analog input card
Table of Contents

Advertisement

6.10 _9113_AD_Set_Range

@ Description
This function is used to set the A/D range by means of writing data to
the A/D range control register. The initial value of gain is '1' which is
the default setting by PCI-9113A hardware. The relationship between
gain and input voltage ranges is specified by the following tables:
Input Range (V)
10 V
1 V
100m V
5 V
500m V
50m V
0~10 V
0~1 V
0~100m V
@ Syntax
C/C++ (DOS)
U16 _9113_AD_Set_Range (U16 cardNo, U16 ADRange)
C/C++ (Windows 95)
U16 W_9113_AD_Set_Range (U16 cardNo, U16 ADRange)
Visual Basic (Windows 95)
W_9113_AD_Set_Range (ByVal cardNo As Integer, ByVal ADRange As
Integer) As Integer
@ Argument
cardNo: The card number of PCI-9113A 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_5_V, AD_B_0_5_V, AD_B_0_05_V,
AD_U_10_V, AD_U_1_V, AD_U_0_1_V,
@ Return Code
Gain
Gain Code
X 1
AD_B_10_V
X 10
AD_B_1_V
X 100
AD_B_0_1_V
X 1
AD_B_5_V
X 10
AD_B_0_5_V
X 100
AD_B_0_05_V
X 1
AD_U_10_V
X 10
AD_U_1_V
X 100
AD_U_0_1_V
C/C++ Software Library
45

Advertisement

Table of Contents
loading

Table of Contents