Chapter 4: PowerDAQ Software (SDK)
79
Method B. Buffered event-based waveform
mode using PCI interrupts
See SDK Examples
AOEvents.c, AEOutBlk.vbp
Buffered event-based waveform mode allows you to generate any
continuous waveforms. When the on-board output FIFO is less than
half full, the board sends an interrupt to the host to request additional
data. You can process analog output events in a separate event handler
or in the common event handler for all subsystems.
Initialization
Reset analog output
#
_PdAOutReset(
…
)
•
Set analog output configuration
#
_PdAOutSetCfg(
…
)set dwConfig =
AOB_CVSTART0 to use 11 MHz internal base clock.
•
Set timebase
#
_PdAOutSetCvClk(…)use the same calculations to
set up the timebase as it was described in the
analog input subsystem
•
Set up event object
#
_PdAOutSetPrivateEvent(…)
•
Enable interrupt
#
_PdAdapterEnableInterrupt(…)
•
Set events to be notified about
#
_PdSetUserEvents(…) set dwEventsNotify =
eFrameDone | eBufferDone | eBufferError |
eStopped. These are all events needed for event-
based waveform mode. Do not forget the
subsystem = AnalogOut
•
Write the first block of data
#
_PdAOutPutBlock(…)
Summary of Contents for PD2-MF
Page 5: ...Table of Contents iii Index 137 ...
Page 11: ...1 1 Introduction ...
Page 18: ......
Page 19: ...9 2 Installation and Configuration ...
Page 34: ......
Page 35: ...25 3 Architecture ...
Page 63: ...53 4 PowerDAQ Software Development Kit PD SDK ...
Page 106: ......
Page 107: ...97 5 Calibration ...
Page 109: ...99 A Appendix A Specifications ...
Page 110: ...Appendix A Specifications 100 ...
Page 112: ......
Page 113: ...103 B Appendix B Accessories ...
Page 118: ......
Page 119: ...109 C Appendix C Application Notes ...
Page 125: ...115 D Appendix D Warranty ...
Page 128: ......
Page 129: ...119 E Appendix E Glossary ...
Page 152: ......