Programming the VT1422A for Data Acquisition and Control 127
Chapter 4
ALG:SCAL 'alg1','start',1.2345
ALG:ARR 'alg1','some_array',#232..........LF/EOI
ALG:UPD
The ALG:SCAL command designates the name of an algorithm, indicates
where to find the local variable start, and assigns that variable the value of
1.2345. Likewise, the ALG:ARRAY command designates the name of an
algorithm, the name of the local array, and a definite length block for
assigning the four real number values. As it can be seen, the scalar
assignment uses ASCII and the array assignment uses binary. The later
makes for a much faster transfer, especially for large arrays. The format used
is IEEE-754 8-byte binary real numbers. The header is #232 which states
"the next 2 bytes are to be used to specify how many bytes are comming."
In this case, 32 bytes represent the four 8-byte elements of the array. A
100-element array would have a header of #3800. To pre-initialize a global
scalar or array, the word 'globals' must be used instead of the algorithm
name. The name simply specifies the memory space of where to find those
elements.
As stated earlier in the chapter, all updates (changes) are held in a holding
buffer until the computer issues the update command. The ALG:UPD is that
command. Executing ALG:UPD before INIT does not make much
difference since there is no concern as to how long it takes or how it is
implemented. After INIT forces the buffered changes to all take place during
the next Update Phase in the trigger cycle after reception of the
ALG:UPD command.
For VXIplug&play Users:
Use the functions hpe1422_algArray,
hpe1422_algScal to send new values to algorithm variables and
hpe1422_cmd to send the ALG:UPD... SCPI command. See the VT1422A
plug&play
driver Help file.
Defining Data Storage
Specifying the
Data Format
The format of the values stored in the FIFO buffer and CVT never changes.
They are always stored as IEEE 32-bit Floating point numbers. The
FORMat <
format
>[,<
length
>] command merely specifies whether and how
the values will be converted as they are transferred from the CVT and FIFO
to the host computer.
•
The <
format
>[,<
length
>] parameters can specify:
PACKED
Same as REAL,64 except for the values of
IEEE -INF, IEEE +INF and Not-a-Number (NaN).
See FORMat command in Chapter 5 for details.
REAL,32
Means real 32-bit (no conversion, fastest)
REAL
Same as above
REAL,64
Means real 64-bit (values converted)
ASCii,7
Means 7-bit ASCII (values converted)
ASCii
Same as above (the *RST condition)
Содержание 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...