ADLINK cPCI-9116 User Manual

Page 82

Advertising
background image

72

• C++ Library

6.10 AD one-shot scan data acquisition with interrupt-

transfer functions

These functions are used to start scan data acquisition with
interrupt-transfer according to the selected trigger mode and conditions.
Note that these functions cannot be applied to pre-trigger and
middle-trigger mode.

6.10.1 _9116_AD_INT_Start

@ Description

This function will perform programmable scan data acquisition with
interrupt transfer by using the pacer trigger. It takes place in the
background and will not stop until the completion of all the conversions
or the execution of _9116_AD_INT_Stop() function to stop the process.
The data acquired will be in the order of the Channel Gain Queue
setting.

After executing this function, it is necessary to check the status of the
operation by using the function _9116_AD_INT_Status(), and execute
_9116_AD_INT_Stop() after you obtain the AD_INT_STOP status from
_9116_AD_INT_Status().

@ Syntax

C/C++ (DOS)

int _9116_AD_INT_Start( I16 card_number, U32 SI_value, U32

SI2_value, U32 SC_value, U32 DIV_value, U16 *ad_buffer,
U16 mode)

@ 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.

SI_value:

Set SI_Counter value. Range: 96 through to
16777215

SI2_value:

Set SI2_Counter value. Range: 96 through to 65535

SC_value:

Set SC_Counter value. Range: 1 through to
16777215

DIV_value:

Set DIV_Counter value. Range: 1 through to 65535

ad_buffer :

the start address of the memory buffer to store the
A/D data, the buffer size must be larger then the
numbers of A/D conversion. The memory should be
of double-word length.

Advertising