ADLINK cPCI-9116 User Manual

Page 85

Advertising
background image

C++ Library

• 75

6.11 AD continuous scan data acquisition with

double-buffered DMA transfer functions

These functions are used to perform continuous scan data acquisition
with double-buffered DMA data transfer. It takes place in the
background and will not stop until the execution of
_9116_AD_DMA_Stop() function to stop the process. (Note these
functions do not apply to pre-trigger and middle-trigger mode.) Refer to
the sample program AD_DEMO10.C.

6.11.1

_9116_DblBufferMode

@ Description

This function is used to enable the double-buffered mode. If
double-buffered mode is set, function _9116_AD_DMA_Start() will
perform continuous scan data acquisition. Otherwise function
_9116_AD_DMA_Start() only performs one-shot scan data acquisition.

@ Syntax

C/C++ (DOS)

int _9116_DblBufferMode(I16 card_number, U8 enable)

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

Enable:

enable/disable double-buffered mode DMA.

0: disabled
1: enabled

@ Return Code

ERR_NoError
ERR_BoardNoInit

Advertising