![Keithley KUSB-3100 User Manual Download Page 28](http://html1.mh-extra.com/html/keithley/kusb-3100/kusb-3100_user-manual_3961323028.webp)
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
Summary of Contents for KUSB-3100
Page 10: ...Contents x...
Page 14: ...About this Manual xiv...
Page 15: ...1 1 Overview Features 2 Supported Software 3...
Page 18: ...Chapter 1 4...
Page 46: ...Chapter 2 32...
Page 47: ...33 3 Supported Device Driver Capabilities...
Page 86: ...Chapter 4 72...
Page 87: ...73 5 Troubleshooting General Checklist 74 Service and Support 77...
Page 100: ...Chapter 6 86...
Page 101: ...87 A Specifications...
Page 112: ...Appendix A 98...
Page 113: ...99 B Connector Pin Assignments...
Page 115: ...101 C Reading from or Writing to the Digital Registers...