User`s guide
82 • C/C++ Library
5.39 _9111_AD_INT_Start
@ Description
This function is used to initialize and start up the AD EOC
(end-of-conversion) interrupt transfer mode. This function could perform
A/D conversion N times with interrupt data transfer by using pacer trigger.
It takes place in the background which will not stop until the N-th
conversion has been completed or your program execute
_9111_AD_INT_Stop() function to stop the process.
After executing this function, it is necessary to check the status of the
operation by using the function _9111_AD_INT_Status(). While all the
specified count of data are acquired, the interrupt status will be changed
to “AD_INT_STOP”.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.
Note: The interrupt mode provided in this function is internal timer source;
therefore you must specify c1 & c2 as calling this function. In
addition, this function in this library supports just one PCI-9111
card and provides only one ISR (interrupt service routine) for
processing the interrupt events. If multi-9111 cards and multi-ISR
is necessary, users can modify this library for your own purpose.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_INT_Start ( U16 cardNo, U16 auto_scan, U16 ad_ch_no,
U16 ad_gain, U16 count, I16 far *ad_buffer, U16 c1, U16 c2)
C/C++ (Windows 95)
U16 W_9111_AD_INT_Start (U16 cardNo, U16 auto_scan, U16
ad_ch_no, U16 ad_gain, U16 count, I16 far *ad_buffer, U16 c1,
U16 c2)
Visual Basic (Windows 95)
W_9111_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 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.