User`s guide

PCIS-DASK Application Hints
35
5.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);
AI_xxxx_Config
(xxxx means the card
type, e.g.
AI_9112_Config)
Yes
Scale to voltage?
No
AI_ContVScale
Sample multiple
continuous chans?
NoYes
AI_ContReadChannel/
AI_ContReadChannelToFile
AI_ContScanChannels/
AI_ContScanChannelsToFile
With SyncMode
=SYNCH_OP
=SYNCH_OP