Appendix C: Application Notes
111
To receive notification on a sample or scan count boundary, the buffer
is segmented into frames. Whenever the data transferred to the buffer
crosses a frame boundary, the driver sends an event to the application.
This event "wakes up" the application thread that is responsible for
processing data in the buffer. To keep the frame boundaries at fixed
buffer locations, the buffer size should be a multiple of the frame size.
If multi-channel acquisition is performed, then the frame size should
also be a multiple of the scan size. Doing so keeps the pointer
arithmetic from becoming unnecessarily complex.
With the ACB, three modes of operation are possible:
•
Single Buffer
•
Circular Buffer
•
Recycled Circular Buffer
In all three modes, data is written to the beginning of the buffer at the
start of acquisition. The three modes differ in what is done when the
end of the buffer is reached and if the buffer head catches up with
the buffer tail.
Single Buffer
In the Single Buffer mode acquisition stops when the buffer end is
reached. In this mode the application can access the buffer and process
the data any time during acquisition or wait until the buffer is full and
acquisition stops. The Single Buffer mode is the simplest to program,
and also the most common, is useful in applications where acquiring
data in a continuous stream is not required. This is similar to the way
digital multi-meters and digital storage oscilloscopes acquire signals,
whereby a single buffer is filled, and then the waveform is displayed.
This process can also be repeated for any number of times.
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: ......