User`s manual

70 Application Hints
PCIS-DASK
Digital Output Programming Hints
Asynchronous Continuous Digital Output
This section describes the function flow typical of asynchronous
digital output operation. While performing continuous DO opera-
tion, the DO configuration function has to be called at the begin-
ning of the application. In addition, the SyncMode argument in
continuous DO functions for asynchronous mode has to be set to
ASYNCH_OP.
Example code fragment:
DO_XXXX_Config
(XXXX = card type)
DO_ContWritePort
With SyncMode = SYNCH_OP
Operation
completed?
YES
NO
DO_AsyncCheck
DO_AsyncCheck
card = Register_Card(PCI_7200, card_number);
DO_7200_Config(card, TRIG_INT_PACER, OREQ_DISABLE,
OTRIG_LOW);
DO_ContWritePort(card, 0, DoBuf, count, 1,
(F64)sample_rate, ASYNCH_OP);
do {
DO_AsyncCheck(card, &bStopped, &count);
} while (!bStopped);
DO_AsyncClear(card, &count);
Release_Card(card);