192 Creating and Running Algorithms
Chapter 6
Reading CVT elements
An application program reads one or more CVT elements by executing the
SCPI command
[SENSe:]DATA:CVT? (@<element_list>)
, where
<
element_list
> specifies one or more individual elements and/or a range of
contiguous elements. The following example command will help to explain
the <
element_list
> syntax.
DATA:CVT? (@10,20,30:33,40:43,330)
Return elements 10, 20, 30-33,
40-43, and element 330.
Individual element numbers are isolated by commas. A contiguous range of
elements is specified by: <starting element>colon<ending element>.
Writing values to the FIFO
The FIFO, as the name implies, is a First-In-First-Out buffer. It can buffer
up to 65,024 values. This capability allows an algorithm to send a
continuous stream of data values related in time by their position in the
buffer. This can be thought of as an electronic strip-chart recorder. Each
value is sent to the FIFO by executing the Algorithm Language intrinsic
statement
writefifo(<expression>)
. The following in an example algorithm
statement:
writefifo(O124); /* send output channel 24's value to the FIFO */
Since the actual algorithm execution rate can be determined (see
“Programming the Trigger Timer” on page 131), the time relationship of
readings in the FIFO is very deterministic.
Reading values from the FIFO
For a discussion on reading values from the FIFO, see “Reading Running
Algorithm Values” on page 134.
Writing values to the FIFO and CVT
The
writeboth(<expression>,<cvt_element>)
statement sends the value of
<
expression
> both to the FIFO and to a <
cvt_element
>. Reading these
values is done the same way as mentioned for
writefifo()
and
writecvt()
.
Setting a VXIbus
Interrupt
The algorithm language provides the function
interrupt()
to force a VXIbus
interrupt. This
interrupt()
function can be used to set bit 11 of the
STATus:OPERation register from within an algorithm. This bit could then
be enabled to generate an SRQ to the controller (see
“STATus:OPERation:ENABle” on page 382 and “*SRE” on page 404).
The following example algorithm code tests an input channel value and sets
an interrupt if it is higher or lower than set limits.
static float upper_limit = 1.2, lower_limit = 0.2;
if( I124 > upper_limit || I124 < lower_limit ) interrupt();
Содержание 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...