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.
Содержание PD2-MF
Страница 5: ...Table of Contents iii Index 137 ...
Страница 11: ...1 1 Introduction ...
Страница 18: ......
Страница 19: ...9 2 Installation and Configuration ...
Страница 34: ......
Страница 35: ...25 3 Architecture ...
Страница 63: ...53 4 PowerDAQ Software Development Kit PD SDK ...
Страница 106: ......
Страница 107: ...97 5 Calibration ...
Страница 109: ...99 A Appendix A Specifications ...
Страница 110: ...Appendix A Specifications 100 ...
Страница 112: ......
Страница 113: ...103 B Appendix B Accessories ...
Страница 118: ......
Страница 119: ...109 C Appendix C Application Notes ...
Страница 125: ...115 D Appendix D Warranty ...
Страница 128: ......
Страница 129: ...119 E Appendix E Glossary ...
Страница 152: ......