User`s manual
44 Application Hints
PCIS-DASK
Analog Input
Synchronous Continuous Analog Input
This section describes 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 to SYNCH_OP.
Example code fragment
NO
AI_ContReadChannel/
AI_ContReadChannelToFile
AI_ContScanChannels/
AI_ContScanChannelsToFile
Sample multiple
continuous channels?
AI_XXXX_Config
(XXXX = card type)
NOYES
Scale to voltage?
AI_ContVScale
YES
With SyncMode
= SYNCH_OP
With SyncMode
= SYNCH_OP
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);