Principles of Operation
69
Converting a Voltage to a Twos Complement Code
To convert a voltage into a twos complement code on the DT9812-10V, DT9812-10V-OEM,
DT9812A, DT9813-10V, DT9813A, DT9814-10V, or DT9814A module, use the following
formula:
Code = Voltage
(20 / 4096)
where,
• 20 is the full-scale range of the module (-10V to +10V)
• 4096 is the resolution (12 bits)
•
Voltage
is the analog output voltage
•
Code
is the raw count used by the software to represent the voltage in binary notation
For example, if you want to output a voltage of
5 V, determine the code as follows:
Code = 5/ (20 / 4096)
=
1024
Error Conditions
The modules can report an underrun error if the data for the analog output channels is not
sent fast enough from the host computer. It is up to the host application to handle this error
either by ignoring it or by stopping the output operation.
To avoid this error, try slowing down the clock rate, increasing the output buffer size, or
allocating more output buffers.
Note:
If no new data is available to be output by the analog output channels, the last value
that was written to the analog output channels continues to be output.
Содержание DT9812 Series
Страница 1: ...DT9812 UM 20769 R DT9813 and User s Manual DT9814 Series Title Page ...
Страница 4: ......
Страница 12: ...About this Manual 12 ...
Страница 13: ...13 1 Overview Key Hardware Features 14 Supported Software 15 Getting Started Procedure 16 ...
Страница 17: ...Part 1 Getting Started ...
Страница 18: ......
Страница 26: ...Chapter 2 26 ...
Страница 53: ...Part 2 Using Your Module ...
Страница 54: ......
Страница 76: ...Chapter 5 76 ...
Страница 88: ...Chapter 6 88 ...
Страница 89: ...89 7 Troubleshooting General Checklist 90 Technical Support 92 If Your Module Needs Factory Service 93 ...
Страница 94: ...Chapter 7 94 ...
Страница 113: ...113 B Screw Terminal and Connector Pin Assignments ...
Страница 124: ...Index 124 writing programs in C C 15 Visual Basic 15 Visual Basic NET 15 Visual C 15 Visual C 15 ...