User`s guide

18 ? PCIS-DASK Application Hints
AI_xxxx_Config
(
xxxx means the card type,
e.g. AI_9112_Config
)
No
AI_AsyncCheck
Operation complete?
Yes
AI_AsyncClear
Sample multiple
continuous
chans?
NoYes
AI_ContReadChannel/
AI_ContReadChannel
AI_ContScanChannels/
AI_ContScanChannelsToFile
With
SyncMode
=ASYNCH_OP
With SyncMode
=ASYNCH_OP
[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);
4.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.