C Language Library
•
75
count:
the number of A/D converted data which
has
been
transferred.
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_AD_DMANotSet
Example:
See demo program 'AD_Demo4.C'
7.17 _8112_AD_INT_Start
Description
The function will perform A/D conversion N times with interrupt data
transfer by using pacer trigger. It takes place in the background which
will not be stopped until the Nth conversion has been completed or
your program execute _8112_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 8112_AD_INT_Status().
The function is performed on single A/D channel with fixed analog
input range.
Syntax
int _8112_INT_Start( int ad_ch_no, int ad_range,
int irq_ch_no, int count, int
*ad_buffer,
unsigned int c1, unsigned int c2)
int _8112pg_INT_Start( int ad_ch_no, int ad_gain,
int irq_ch_no, int count, int
*ad_buffer,
unsigned int c1, unsigned int c2)
Argument:
ad_ch_no
:
A/D channel number
ad_range
:
A/D analog input range, please refer
to section 7.9 for the possible values.
irq_ch_no
:
IRQ channel number used to transfer AD
data,
the possible value is defined in '
8112.h '
count:
the number of A/D conversion
Содержание ACL-8112 Series
Страница 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Страница 4: ......
Страница 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Страница 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Страница 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Страница 49: ...Operation Theorem 41 mode control register BASE 11 The different transfer modes are specified as follows ...
Страница 61: ...C Language Library 53 ErrCode _8112_Initial CARD_2 A8112B_DG 0x220 if ErrCode ERR_NoError exit 0 ...
Страница 71: ...C Language Library 63 ...
Страница 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Страница 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...