Owner's manual

Chapter 4: PowerDAQ Software
4
7
AIB_FIXEDDMA – use fixed channel list mode (1/2/4/8 channels
only), input mode, default.
AOB_DMAEN – use fixed channel list mode (1/2/4/8 channels only),
output mode, default, must be part of the configuration word for the
_PdDOAsyncInit call.
Following steps are required for the event-based mode:
Acquire all resources
Open Driver
Open Adapter
Acquire Digital Input and/or Digital Output Subsystem
Acquire Buffer
Enable desired ports as an outputs
Configure the events (eFrameDone/eBufferDone and all error
events must be reported)
For the output – fill the buffer with initial data
Enable I/O
Process the data in event-based loop
Wait for the event to happens if interrupts are used
Check the event and, if data is available (or more space in the
output buffer)
Read/Write data to/from the buffer
Re-enable events
Release all resources used
Release Buffer
Close subsystem
Close Adapter
Close driver
Following examples are supplied with PowerDAQ SDK 3.x which
supports various input/output buffered modes :
pddi_buf.c - digital input stream (-ST boards only)
pddo_buf.c - digital output stream (-ST boards only)