DRV_FAIDmaExStart

INT32S DRV_FAIDmaExStart (
   PTR_T DeviceHandle,
   PT_FAIDmaExStart *lpFAIDmaExStart );

Purpose

On the device indicated by the DeviceHandle, initiates a single-channel FAI (Fast Analog Input) operation with bus-master DMA transfer, by way of specifying an AI channel and pre-initiating the sampling buffer for data storage.

This function is used to support the bus-master DMA on PCI series devices.

Parameters

Some parameters, such as  triggering source (TrigSrc), triggering mode (TrigMode), clock source (ClockSrc), edge triggering mode (TrigEdge), triggering source type (SRCType), triggering voltage (TrigVol), cyclic mode (CyclicMode), sampling channel count (NumChans), start channel number (StartChan), delay count (ulDelayCnt), sampling count (count), total sampling rate (SampleRate), GainCode list pointer (GainList) and sampling buffer (buffer0), are saved in the PT_FAIDmaExStart, structure pointed by the lpFAIDmaExStart.  

Name

Direction

Range

Description

DeviceHandle

input

default

The pointer retrieved from the DRV_DeviceOpen which specifies the target device.

llpFAIDmaExStart

input / output

default

The pointer to indicate the user-prepared structure PT_FAIDmaExStart that stores triggering source (INT16U TrigSrc), triggering mode (USHORT TrigMode), clock source (INT16U ClockSrc), edge triggering mode (INT16U TrigEdge), triggering source type (INT16U SRCType), triggering voltage (FP32  TrigVol), cyclic mode (INT16U CyclicMode), sampling channel count (INT16U NumChans), start channel number (INT16U StartChan), delay number (INT16U  ulDelayCnt), sampling count (INT16U  count), total sampling rate (INT32U  SampleRate), GainCode list pointer (INT16U *GainList) and sampling buffer (INT16U *buffer0). Here, CondList, LevelList, buffer1, Pt1, Pt2 and Pt3 are reserved.

Return

   1. 0 Successful.
   2. Other value Please reference ErrorCodes