User`s guide
PCIS-DASK Application Hints
•
41
AI_ContReadChannel(card, channel, range, ai_buf, data_size,
(F64)sample_rate, ASYNCH_OP)
do {
AI_AsyncCheck(card, &bStopped, &count);
} while (!bStopped);
AI_AsyncClear(card, &count);
…
Release_Card(card);
5.1.6 Trigger Mode Double-buffered Asynchronous Continuous
Analog input programming Scheme
This section described the function flow typical of trigger mode double-buffered
asynchronous analog input operation. A trigger is an event that occurs based
on a specified set of conditions. An interrupt mode or DMA-mode Analog input
operation can use a trigger to determinate when acquisition stop. The trigger
mode data acquisition programming is almost the same as the non-trigger
mode asynchronous analog input programming. Using PCIS-DASK to perform
trigger mode data acquisition, the SyncMode of continuous AI should be set as
ASYNCH_OP. In addition, double-buffered AI operation is enabled by setting
Enable argument of AI_AsyncDblBufferMode function to 1. To learn more
about double buffer mode, please refer to section 5.2 Double-Buffered AI/DI
Operation for the details.