Generating User Defined Functions 487
Appendix F
Appendix F
Generating User Defined Functions
Introduction
The VT1422A has a limited set of mathematical operations such as add,
subtract, multiply, and divide. Many control applications require functions
such as square root for calculating flow rate or a trigonometric function to
correctly transition motion of moving object from a start to ending position.
In order to represent a sine wave or other transcendental functions, one could
use a power series expansion to approximate the function using a finite
number of algebraic expressions. Since the above mentioned operations can
take from 1.5
µ
s to 4
µ
s for each floating point calculation, a complex
waveform such as sine(
x
) could take more than 100
µ
s to get the desired
result. A faster solution is desirable and available.
The VT1422A provides a solution to approximating such complex
waveforms by using a piece-wise linearization of virtually any complex
waveform. The technique is simple. The VXI
plug&play
Drivers & Product
Manuals CD-ROM supplied with the VT1422A contains a 'C' program
which calculates 128 M
x
+B segments over a specified range of values for
the desired function. The user supplies the function; the program generates
the segments in a table. The resulting table can be downloaded into the
VT1422A's RAM with the ALG:FUNC:DEF command where any desired
name of the function (i.e., sin(
x
), tan(
x
), etc.) can be selected. Up to 32
functions can be created for use in algorithms. At runtime, where the
function is passed an '
x
' value, the time to calculate the M
x
+B segmented
linear approximation is approximately 18
µ
s.
The VT1422A actually uses this technique to convert volts to temperature,
strain, etc. The accuracy of the approximation is really based upon how
well the range is selected over which the table will be built. For
thermocouple temperature conversion, the VT1422A fixes the range to the
lowest A/D range (±64 mV) so that small microvolt measurements yield the
proper resolution of the actual temperature for a non-linear transducer. In
addition, the VT1422A permits the creation of Custom Engineering Unit
conversion for a transducer so that when the voltage measurement is actually
made, the EU conversion takes place (see SENS:FUNC:CUST). Algorithms
deal with the resulting floating point numbers generated during the
measurement phase and may require further complex mathematical
operations to achieve the desired result.
With some complex waveforms, it may be necessary to break up the
waveform into several functions in order to get the desired accuracy. For
example, suppose the generation a square root function is required for both
voltage and strain calculations. The voltages are only going to range from 0
to ±16 volts, worst case. The strain measurements return numbers in
microstrain which range in the 1000's. Trying to represent the square root
function over the entire range would severely impact the accuracy of the
Содержание VT1422A
Страница 2: ...This page is blank...
Страница 8: ...8 Notes...
Страница 22: ...22 Support...
Страница 57: ...Field Wiring 57 Chapter 2...
Страница 58: ...58 Field Wiring Chapter 2...
Страница 96: ...94 Programming the VT1422A VT1529A B for Remote Strain Measurement Chapter 3...
Страница 162: ...160 Programming the VT1422A for Data Acquisition and Control Chapter 4...
Страница 224: ...222 Creating and Running Algorithms Chapter 6...
Страница 419: ...VT1422A Command Reference 417 Chapter 7 Notes...
Страница 420: ...418 VT1422A Command Reference Chapter 7 Notes...
Страница 425: ...Specifications 423 Appendix A Thermocouple Type E 200 800 C SCPs VT1501 02 03A...
Страница 426: ...424 Specifications Appendix A Thermocouple Type E 200 800 C SCPs VT1508 09A...
Страница 427: ...Specifications 425 Appendix A Thermocouple Type E 0 800 C SCPs VT1501A 02A 03A...
Страница 428: ...426 Specifications Appendix A Thermocouple Type E 0 800 C SCPs VT1508A 09A...
Страница 429: ...Specifications 427 Appendix A Thermocouple Type E Extended SCPs VT1501A 02A 03A...
Страница 430: ...428 Specifications Appendix A Thermocouple Type E Extended SCPs VT1508A 09A...
Страница 431: ...Specifications 429 Appendix A Thermocouple Type J SCPs VT1501A 02A 03A...
Страница 432: ...430 Specifications Appendix A Thermocouple Type J SCPs VT1508A 09A...
Страница 433: ...Specifications 431 Appendix A Thermocouple Type K SCPs VT1501A 02A 03A...
Страница 434: ...432 Specifications Appendix A Thermocouple Type R SCPs VT1501A 02A 03A...
Страница 435: ...Specifications 433 Appendix A Thermocouple Type R SCPs VT1508A 09A...
Страница 436: ...434 Specifications Appendix A Thermocouple Type S SCPs VT1501A 02A 03A...
Страница 437: ...Specifications 435 Appendix A Thermocouple Type S SCPs VT1508A 09A...
Страница 438: ...436 Specifications Appendix A Thermocouple Type T SCPs VT1501A 02A 03A...
Страница 439: ...Specifications 437 Appendix A Thermocouple Type T SCPs VT1508A 09A...
Страница 440: ...438 Specifications Appendix A 5k Thermistor Reference SCPs VT1501A 02A 03A...
Страница 441: ...Specifications 439 Appendix A 5k Thermistor Reference SCPs VT1508A 09A...
Страница 442: ...440 Specifications Appendix A RTD Reference SCPs VT1501A 02A 03A...
Страница 443: ...Specifications 441 Appendix A RTD SCPs VT1501A 02A 03A...
Страница 444: ...442 Specifications Appendix A RTD SCPs VT1508A 09A...
Страница 445: ...Specifications 443 Appendix A 2250 Thermistor SCPs VT1501A 02A 03A...
Страница 446: ...444 Specifications Appendix A 2250 Thermistor SCPs VT1508A 09A...
Страница 447: ...Specifications 445 Appendix A 5k Thermistor SCPs VT1501A 02A 03A...
Страница 448: ...446 Specifications Appendix A 5k Thermistor SCPs VT1508A 09A...
Страница 449: ...Specifications 447 Appendix A 10k Thermistor SCPs VT1501A 02A 03A...
Страница 450: ...448 Specifications Appendix A 10k Thermistor SCPs VT1508A 09A...
Страница 454: ...452 Specifications Appendix A...
Страница 480: ...478 VT1529A B Verification Calibration Appendix C...
Страница 484: ...482 Glossary Appendix D Notes...