User`s manual
58 Application Hints
PCIS-DASK
Digital Input Programming Hints
Synchronous Continuous Digital Input
This section describes the function flow typical of synchronous
digital input operation. While performing continuous DI operation,
the DI configuration function has to be called at the beginning of
the application. For synchronous DI, the SyncMode argument in
continuous DI functions has to be set to SYNCH_OP.
Example code fragment:
DI_XXXX_Config
(XXXX = card type)
DI_ContReadPort /
DI_ContReadPortToFile
With SyncMode = SYNCH_OP
card = Register_Card(PCI_7200, card_number);
…
DI_7200_Config(card,TRIG_INT_PACER, DI_NOWAITING,
DI_TRIG_FALLING, IREQ_FALLING);
DI_AsyncDblBufferMode (card, 0); //non-double-buffe
r
mode
DI_ContReadPort(card, 0, pMem, data_size,
(F64)sample_rate, SYNCH_OP)
…
Release_Card(card);