User`s guide

PCIS-DASK Application Hints ? 33
4.4.3 Asynchronous Continuous Digital output programming Scheme
This section described the function flow typical of asynchronous digital output operation. While performing continuous
DO operation, the DO configuration function has to be called at the beginning of your application. In addition, for
asynchronous DO operation, the SyncMode argument in continuous DO functions for asynchronous mode has to be set
as ASYNCH_OP.
DO_xxxx_Config
(
xxxx means the card type,
e.g. DO_7200_Config
)
DO_ContWritePort
DO_AsyncCheck
Operation complete?
Yes
No
With SyncMode=ASYNCH_OP
DO_AsyncClear
[Example Code Fragment]
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);
4.4.4 Pattern Generation Digital output programming Scheme
This section described the function flow typical of pattern generation for digital output. While performing pattern
generation of DO, the DO configuration function has to be called at the beginning of your application.
DO_xxxx_Config
(
xxxx means the card type,
e.g. DO_7300B_Config
)
DO_PGStart
Complete pattern
generation
DO_PGStop