User`s guide
PCIS-DASK Application Hints ? 21
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. 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.
AI_xxxx_Config / With Trigger mode enebled
(
xxxx means the card type, e.g.
AI_9118_Config
)
AI_AsyncDblBufferMode
With
Enable=TRUE
With
SyncMode
=ASYNCH_OP
AI_AsyncDblBufferHalfReady
Next Buffer ready
for transfer? /
Operation Complete?
Yes
No
AI_AsyncDblBufferTransfer
Want to stop
the operation ?
AI_AsyncClear
Yes
No
AI_ContReadChannel/
AI_ContReadChannelToFile
AI_ContScanChannels/
AI_ContScanChannelsToFile
Sample multiple
continuous chans?
No
Yes
With
SyncMode
=ASYNCH_OP