ADLINK PCM-9112+ User Manual

Page 69

Advertising
background image

C/C++ Library

61

5.17 _9112_ContDmaStart

@ Description

This function will perform A/D conversion continuously with DMA data
transfer. It takes place in the background which will not stop until your
program execute _9112_ContDmaStop() function to stop the process.

After executing this function, it is necessary to check the status of the
double buffer by using the function _9112_CheckHalfReady() and using
_9112_DblBufferTransfer() to get the A/D converted data.

There is a group of functions for continuous A/D conversion using DMA.
They are:

_9112_ContDmaStart();
_9112_CheckHalfReady();
_9112_DblBufferTransfer();
_9112_GetOverrunStatus();
_9112_ContDmaStop();

@ Syntax

Visual C++ (Windows-95)

int W_9112_ContDmaStart (int card_number, int auto_scan,

int ad_ch_no, int ad_range, int count, HANDLE memID,
int c1, int c2)

Visual Basic (Windows-95)

W_9112_ContDmaStart (ByVal card_number As Long, ByVal

auto_scan As Long, ByVal ad_ch_no As Long, ByVal
ad_range As Long, ByVal count As Long, ByVal memID
As Long, ByVal c1 As Long ByVal c2 As Long)
As Long

C/C++ ( DOS)

int _9112_ContDmaStart (int card_number, int auto_scan,

int ad_ch_no, int ad_range, int count , int
*db_buffer, int c1, int c2)

Advertising