
Chapter 5
58
Data Transfer
If you are using continuous output mode, you must allocate and fill either a single buffer or
multiple buffers with the waveform that you want to output.
If you are using multiple buffers, data is written from the output buffers continuously; when
no more buffers of data are available, the continuous output operation stops. This mode
guarantees gap-free data.
If you use a single buffer, data is output continuously from the single buffer until you stop the
operation.
A buffer done event is generated whenever the last value in a buffer is output. This allows you
to fill the buffer or provide a new buffer, as needed.
Note:
An underrun error can result if your buffer size is too small, if you do not allocate
enough buffers, or if your clock rate is too fast.
Data Format
In software, you need to supply a code that corresponds to the analog output value you want
the board to output. To convert a voltage to a code, use the following formulas:
LSB = FSR
2
N
Code = Vout – Offset
LSB
where,
•
LSB
is the least significant bit.
•
FSR
is the full-scale range. For the DT9850 Series, the full-scale analog output range is 10
for the unipolar range of 0 to 10 V, or 20 for the bipolar range of ±10 V.
•
N
is the number of bits of the DAC, or 16 for these modules.
•
Code
is the raw count used by the software to represent the voltage.
•
Vout
is the analog output voltage.
•
Offset
is the minus full-scale value. The minus full-scale value is 0.0 V for the unipolar
range or
−
10 V for the ±10 V range.
Summary of Contents for DT9850 Series
Page 1: ...DT9850 Series UM 22600 M User s Manual Title Page ...
Page 4: ......
Page 8: ...Contents 8 ...
Page 16: ...Chapter 1 16 ...
Page 17: ...Part 1 Getting Started ...
Page 18: ......
Page 48: ...Chapter 4 48 ...
Page 49: ...Part 2 Using Your Module ...
Page 50: ......
Page 76: ...Chapter 6 76 ...
Page 82: ...Chapter 7 82 ...
Page 83: ...83 8 Calibration Using the Calibration Utility 84 Calibrating the Analog Output Subsystem 85 ...
Page 86: ...Chapter 8 86 ...