ADLINK cPCI-9116 User Manual

Page 71

Advertising
background image

C++ Library

• 61

6.6

AD Software-Polling functions

6.6.1 _9116_AD_Acquire

@ Description

This function is used to poll the A/D converted data. It will trigger an A/D
conversion, and read the A/D data when the data is ready. To perform a
software-polling data acquisition, users must set the Channel Gain
Queue using functions in 6.5, and then performing this function will
retrieve the data in the order the Channel Gain Queue has been set.
Refer to the sample program AD_DEMO0.C.

@ Syntax

C/C++ (DOS)

int _9116_AD_Acquire( I16 card_number, U16 far *ad_data )

@ Argument

card_number:

the card number of the cPCI-9116 to be initialized,
totally 4 cards can be initialized, valid card
numbers are CARD_1, CARD_2, CARD_3,
CARD_4.

ad_data :

16-bit A/D converted values in binary code format.

@ Return Code

ERR_NoError
ERR_BoardNoInit

Advertising