DRV_FAIDmaStart

status = DRV_FAIDmaStart (DriverHandle, lpFAIDmaStart)

Purpose

Initiates an asynchronous, single-channel data acquisition operation with DMA and stores its input in an array.

Parameters

Name Direction Type Range Description
DriverHandle Input long default assigned by DRV_DeviceOpen
lpFAIDmaStart Input/Output long pointer to PT_FAIDmaStart default the storage address for TrigSrc, SampleRate, chan, gain, buffer, count.

Return

1. SUCCESS if successful.

2. InvalidDriverHandle if DriverHandle is NULL.

3. InvalidWindowsHandle if buffer is NULL.

4. BoardIDNotSupported if function isn't supported in driver.

5. InvalidGain if gain code is incorrect.

6. InvalidChannel if chan is out of range.

7. InvalidCountNumber under these conditions: count is zero, count is not even, counter is less than 2048. (When you do analog input with DMA transfer, conversion number must be bigger than 2048. (The size of Data must be bigger than PAGE_SIZE(4K).

8. IllegalSpeed if SampleRate is out of range.

9. InvalidEventCount if EventCount is zero.

10. ChanConflict if interrupt channel is in conflict.

11. OpenEventFailed if fails to open event name.

12. KeInsufficientResources if resource is in conflict with another driver.

13. KeConInterruptFailure if fails to connects interrupt.