![background image](http://html.mh-extra.com/html/omega/ome-pci-1602/ome-pci-1602_windows-software-manual_737469042.webp)
3.6.4 P1602_AdsPacer
z
Description :
This function will perform multiple A/D conversions by pacer trigger.
The
P1602_SetChannelConfig
function can be used to change channel or configuration
code. The hardware pacer will generate a periodic trigger signal to the A/D converter.
Software polling is used by the P1602_AdsPolling function, so the A/D conversion
process could be interrupted by the computer’s operating system. Since the
P1602_AdsPacer function
uses the hardware pacer, operating system interrupts will not
affect it. For this reason
the
P1602_AdsPacer
function should be used if a waveform
must be precisely reconstructed.
This function will refer to the current active OME-
PCI-1602 board. Use the P1602_ActiveBoard(….) to select the active board.
z
Syntax :
WORD P1602_AdsPacer(float fAdVal[], WORD wNum, WORD wSample);
z
Input Parameter :
fAdVal[] : starting address of the A/D data buffer (16 bit), the data will be
automatically converted to volts based on the setting of the
P1602_SetChannelConfig
function.
wNum : number of A/D conversions to be performed.
wSample : A/D
sample rate = 8M/wSample.
for example: wSample=24
Æ
sample rate=8M/24=330K
z
Return Value :
NoError : OK
ExceedBoardNumber: invalid board number
FindBoardError : cannot find the OME-PCI-1602 board
AdPollingTimeOut : hardware timeout error
z
Demo Program : DEMO1.C
P1602_SetChannelConfig
P1602_AdPolling
P1602_AdsPollng
P1602_AdsPacer
Fix channel A/D conversion mode
42
Summary of Contents for OME-PCI-1602
Page 37: ... Demo Program DEMO9 C 37 ...