Chapter 3
15
Programming with the Low-Level API
Tel: 508-921-4600
www.ueidaq.com
Vers:
1.4
Date:
September 2010
File:
AO-308-353 Chap3.fm
© Copyright 2009
United Electronic Industries, Inc.
STEP 4:
Process data.
// We will not use event notification at first
// - just retrieve scans
while (keep_looping) {
DqeWaitForEvent(&bcb, 1, FALSE,
EVENT_TIMEOUT, &events);
if (events & DQ_eFrameDone) {
// fill buffer with more data
dquser_prefillbuffer(data);
DqAcbPutScansCopy(bcb, data,// buffer
bufsize, // buffer size
MINRQ, // minimum size
&size, // actual
//copied size from
//user buffer into
//ACB &avail);
// available free space
//in buffer
}
}
STEP 5:
Stop operation.
DqeEnable(FALSE, &bcb, 1, FALSE);
STEP 6:
Clean up.
DqAcbDestroy(bcb);
DqStopDQEngine(pDqe);
DqCloseIOM(hd0);
#ifndef _WIN32
DqCleanUpDAQLib();
#endif
Содержание DNx-AO-308-353
Страница 3: ...iii ...