User`s guide

PCIS-DASK Application Hints
39
[Example Code Fragment]
card = Register_Card(PCI_9112, card_number);
AI_9112_Config(card,TRIG_INT_PACER);
AI_AsyncDblBufferMode (card, 1); // 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 {
do {
AI_AsyncDblBufferHalfReady(card, &HalfReady, &fstop);
} while (!HalfReady);
AI_AsyncDblBufferTransfer(card, ai_buf);
} while (!clear_op);
AI_AsyncClear(card, &count);
Release_Card(card);
5.1.5 Trigger Mode Non-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.