Download downloading
Transcript
DRV_FAIDmaWatchdogStart status = FAIDmaWatchdogStart(DeviceHandle, TrigSrc,SampleRate,BufferA,BufferB,BufferSize,cyclic) Purpose Initiates an asynchronous data acquisition operation with analog watchdog by DMA transfer and stores its input in an array. Parameters Name DriverHandle Direction Input lpFAIDmaWatch dogStart Input/Output Type Range default long long pointer to PT_FAIDmaWat chdogStart default Description assigned by DRV_DeviceOpen the storage address for TrigSrc, SampleRate, BufferA, BufferB, BufferSize, buffer, count, cyclic. Table 5-89: DRV_FAIDmaWatchdogStart Parameter Table Return: 1. SUCCESS if successful 2. InvalidDriverHandle if DriverHandle = NULL 3. InvalidWindowsHandle if BufferA = NULL or BufferB = NULL 4. BoardIDNotSupported if function doesn’t have support in driver. 5. InvalidDmaChannel if DMA channel isn’t set to dual DMA mode in device installation utility. 6. InvalidCountNumber have 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). ) 7. IllegalSpeed if SampleRate is out of range. 8. InvalidEventCount if EventCount is zero. 9. ChanConflict if interrupt channel is conflict. 10. OpenEventFailed if event name opens failure. 11. KeInsufficientResources if resource is conflict with another driver. 12. KeConInterruptFailure if connects interrupt failure Chapter 5 Functions Reference 237