56
•
C/C++ Library
@ Argument
ad_ch_no:
A/D channel number
ad_gain:
A/D range value
Input Range (V)
Gain
Range Code
±
10 V
X 1
0
±
5 V
X 2
1
±
2.5 V
X 4
2
±
1.25 V
X 8
3
dma_ch_no:
DMA channel number, DMA_CH_1 or
DMA_CH_3. This should be the same as
the setting of JP8 and JP9 on hardware.
irq_ch_no:
IRQ channel number, used to stop DMA.
This should be the same as the
setting
of JP7 on hardware.
count:
the numbers of A/D conversion
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.
c1:
the 16-bit timer frequency divider of
timer
channel #1
c2:
the 16-bit timer frequency divider of
timer
channel #2
@ Return Code
ERR_NoError
ERR_BoardNoInit, ERR_InvalidADChannel,
ERR_AD_InvalidGain, ERR_InvalidDMAChannel,
ERR_InvalidIRQChannel, ERR_InvalidTimerValue
@ Example
See demo program 'AD_Demo4.C'
Содержание NuDAQ ACL-8216
Страница 1: ...N u D A Q ACL 8216 16 bit High Resolution Data Acquisition Card User s Guide...
Страница 3: ......
Страница 7: ......
Страница 14: ...Installation 7 Figure 2 1 PCB Layout of the ACL 8216...
Страница 17: ...10 Installation...
Страница 27: ......
Страница 45: ......
Страница 55: ...48 C C Library...
Страница 58: ...C C Library 51...
Страница 62: ...C C Library 55 int count int ad_buffer unsigned int c1 unsigned int c2...
Страница 65: ...58 C C Library...
Страница 71: ......
Страница 75: ......
Страница 77: ......