HP (Hewlett-Packard) PCI-9111DG/HR Network Card User Manual


 
C/C++ Library 61
function _9111_AD_FFHF_INT_Status(). While all the specified blocks
of data are acquired, the interrupt status will be changed to
“AD_FFHF_BLOCK_FULL”. The function can perform on single A/D
channel (autoscan is disable) or multiple A/D channels (autoscan is
enable) with fixed analog input range.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_FFHF_INT_Start (U16 cardNo, U16 auto_scan, U16
ad_ch_no, U16 ad_gain, U16 blockNo, I16 far *ad_buffer, U16 c1,
U16 c2)
C/C++ (Windows 95)
U16 W_9111_AD_FFHF_INT_Start (U16 cardNo, U16 auto_scan, U16
ad_ch_no, U16 ad_gain, U16 blockNo, I16 far *ad_buffer, U16 c1,
U16 c2)
Visual Basic (Windows 95)
W_9111_AD_FFHF_INT_Start (ByVal cardNo As Integer, ByVal
auto_scan As Integer, ByVal ad_ch_no As Integer, ByVal ad_gain
As Integer, ByVal blockNo As Integer, ad_buffer As Integer,
ByVal c1 As Integer, ByVal c2 As Integer) As Integer
@ Argument
cardNo: the card number of PCI-9111 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 enable, 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 disable, 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_5_V, AD_B_2_5_V,
AD_B_1_25_V, AD_B_0_625_V,
blockNo: the number of blocks for performing A/D convertion,
one block of A/D conversion is 512.
ad_buffer: the start address of the memory buffer to store the AD
data, the buffer size must large than the number of AD
conversion (blockNo*512).
c1: the frequency devider of Timer#1.
c2: the frequency devider of Timer#2.
@ Return Code
ERR_InvalidADChannel ERR_AD_InvalidGain
ERR_InvalidTimerValue ERR_NoError