Chapter 2
14
Data Transfer
Before you begin acquiring data, you must allocate buffers to hold
the data. During acquisition, a Buffer Done message is returned
whenever a buffer is filled. This allows you to move and/or process
the data as needed.
It is recommended that you allocate a minimum of three buffers for
analog input operations, specifying one of the following buffer wrap
modes in software:
•
None
–
Data is written to multiple allocated input buffers
continuously; when no more empty buffers are available, the
operation stops. This wrap mode guarantees gap-free data.
•
Multiple –
Data is written to multiple allocated input buffers
continuously; if no more empty buffers are available, the module
overwrites the data in the current buffer, starting with the first
location in the buffer. This process continues indefinitely until
you stop it. This mode does not guarantee gap-free data.
Data Format
The KUSB-3100 module uses twos complement encoding to represent
bipolar input ranges. In software, the analog input value is returned
as a code.
To convert a twos complement code into a voltage, use the following
formulas:
LSB = FSR = 20 V = 0.0048828 V
2
N
4096
Code
Offset Binary
= Code
Twos Complement
XOR 2
N-1
Содержание KUSB-3100
Страница 10: ...Contents x...
Страница 14: ...About this Manual xiv...
Страница 15: ...1 1 Overview Features 2 Supported Software 3...
Страница 18: ...Chapter 1 4...
Страница 46: ...Chapter 2 32...
Страница 47: ...33 3 Supported Device Driver Capabilities...
Страница 86: ...Chapter 4 72...
Страница 87: ...73 5 Troubleshooting General Checklist 74 Service and Support 77...
Страница 100: ...Chapter 6 86...
Страница 101: ...87 A Specifications...
Страница 112: ...Appendix A 98...
Страница 113: ...99 B Connector Pin Assignments...
Страница 115: ...101 C Reading from or Writing to the Digital Registers...