User`s guide

PCIS-DASK Application Hints ? 17
4.1.2 Synchronous Continuous Analog input programming Scheme
This section described the function flow typical of synchronous analog input operation. While performing continuous AI
operation, the AI configuration function has to be called at the beginning of your application. In addition, for synchronous
AI, the SyncMode argument in continuous AI functions has to be set as SYNCH_OP.
[Example Code Fragment]
card = Register_Card(PCI_9112, card_number);
AI_9112_Config(card,TRIG_INT_PACER);
AI_ContScanChannels (card, channel, range, ai_buf, data_size, (F64)sample_rate, SYNCH_OP); or
AI_ContReadChannel(card, channel, range, ai_buf, data_size, (F64)sample_rate, SYNCH_OP)
Release_Card(card);
4.1.3 Non-Trigger Non-double-buffered Asynchronous Continuous Analog input programming
Scheme
This section described the function flow typical of non-trigger, non-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. In addition, for asynchronous AI, the SyncMode argument in continuous AI functions has to be set as
ASYNCH_OP.
AI_xxxx_Config
(xxxx means the card
type, e.g.
AI_9112_Config)
Yes
Scale to voltage?
No
AI_ContVScale
Sample multiple
continuous chans?
No Yes
AI_ContReadChannel/
AI_ContReadChannelToFile
AI_ContScanChannels/
AI_ContScanChannelsToFile
With SyncMode
=SYNCH_OP
With SyncMode
=SYNCH_OP