beautypg.com

ADLINK cPCI-9116 User Manual

Page 79

background image

C++ Library

• 69

6.9

AD one-shot scan data acquisition with DMA transfer
functions

These functions are used to start scan data acquisition with DMA
transfer according to the selected trigger mode and conditions.

6.9.1 _9116_AD_DMA_Start

@ Description

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

After executing this function, it is necessary to check the status of the
operation by using the function _9116_AD_DMA_Status(), and execute
_9116_AD_DMA_Stop() after obtaining the AD_DMA_STOP status
from _9116_AD_DMA_Status().

@ Syntax

C/C++ (DOS)

int _9116_AD_DMA_Start(I16 card_number, U32 SI_value, U32

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

@ 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 conversions. The memory should
be of double-word length.