![United Electronic Industries PowerDNA DIO-403 User Manual Download Page 15](http://html.mh-extra.com/html/united-electronic-industries/powerdna-dio-403/powerdna-dio-403_user-manual_844930015.webp)
United Electronics Industries, Inc.
Tel: 781-821-2890
www.ueidaq.com
Fax: 781-821-2891
PowerDNA DIO-403 Layer
-10-
DqeSetEvent(pBcb,
DQ_eDataAvailable|DQ_ePacketLost|DQ_eBufferError|DQ_ePacketOOB);
4. Start operation
DqeEnable(TRUE, &pBcb, 1, FALSE);
5. Process data
while (keep_looping) {
DqeWaitForEvent(&pBcb, 1, FALSE, timeout, &eventsin);
if (eventsin & DQ_eDataAvailable) {
+;
printf("\ndata %08x ", *(uint32*)ioffset);
*(uint32*)ooffset = datarcv;
}
}
6. Stop operation
DqeEnable(FALSE, &pBcb, 1, FALSE);
7. Clean up
DqDmapDestroy(pBcb);
DqStopDQEngine(pDqe);
DqCloseIOM(hd0);
#ifndef _WIN32
DqCleanUpDAQLib();
#endif