NuDAQ PCI- 9113A User Manual page 73

32 channels isolated analog input card
Table of Contents

Advertisement

C/C++ (DOS)
U16 _9113_AD_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no,
U16 ad_gain, U16 count, U32 *ad_buffer, U16 c1, U16 c2)
C/C++ (Windows 95)
U16 W_9113_AD_INT_Start (U16 cardNo, U16 auto_scan, U16
ad_ch_no, U16 ad_gain, U16 count, U32 *ad_buffer, U16 c1, U16 c2)
Visual Basic (Windows 95)
W_9113_AD_INT_Start (ByVal cardNo As Integer, ByVal auto_scan As
Integer, ByVal ad_ch_no As Integer, ByVal ad_gain As Integer, ByVal
count As Integer, ad_buffer As Long, ByVal c1 As Integer, ByVal c2 As
Integer) As Integer
@ Argument
cardNo: The card number of PCI-9113A card initialized.
auto_scan:0: autoscan is disabled.
1: autoscan is enabled.
ad_ch_no: A/D channel number.
If the auto_scan is set as enabled, the selection sequence of A/D
channel is: 0, 1, 2, 3, ..., [ad_ch_no], 0, 1, 2, 3, [ad_ch_no], ...
If the auto_scan is set as disabled, only the data input from
[ad_ch_no] is converted.
ad_gain: A/D analog input range, 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
count: The number of A/D conversion
ad_buffer:
data. The buffer size must large than the number of A/D
conversion. The unsigned integer data format in ad_buffer is as
follows:
Every 32-bit unsigned integer data:
bit 0... 11: A/D converted data
bit 16, 17, ... , 20: converted channel no.
Please refer to section 5.1.5 for the relationship between the
voltage and the value.
c1: the frequency devider of Timer#1
c2: the frequency devider of Timer#2
@ Return Code
The start address of the memory buffer to store the A/D
C/C++ Software Library
63

Advertisement

Table of Contents
loading

Table of Contents