User`s guide

PCIS-DASK Application Hints
37
[Example Code Fragment]
card = Register_Card(PCI_9112, card_number);
AI_9112_Config(card,TRIG_INT_PACER);
AI_AsyncDblBufferMode (card, 0); //non-double-buffered AI
AI_ContScanChannels (card, channel, range, ai_buf, data_size,
(F64)sample_rate, ASYNCH_OP); or
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.4 Non-Trigger Double-buffered Asynchronous Continuous
Analog input programming Scheme
This section described the function flow typical of non-trigger, double-buffered
asynchronous analog input operation. While performing continuous AI
operation, the AI configuration function has to be called at the beginning of
your application. For asynchronous AI, The SyncMode argument in continuous
AI functions has to 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.