3.6.3 P1602_AdsPolling
z
Description :
This function will perform multiple A/D conversions by polling. The
P1602_SetChannelConfig
function can be used to change the channel or configuration
code used by the
P1602_AdsPolling
function. 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_AdsPolling(float fAdVal[], WORD wNum);
z
Input Parameter :
fAdVal[]: starting address of 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.
•
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
41
Summary of Contents for OME-PCI-1602
Page 37: ... Demo Program DEMO9 C 37 ...