196 Creating and Running Algorithms
Chapter 6
Defining Algorithms (ALG:DEF)
This section discusses how to use the ALG:DEFINE command to define
algorithms. Later sections will discuss "what to define."
Note for
VXI
plug&play
Users
While the following discussion of algorithm definition is useful for
plug&play
users with regards to the coding of an algorithm or global
variable definition, generating an algorithm code and actually downloading
it to the VT1422A is much easier because of the
plug&play
hps1422.exe
Soft Front Panel program and hpe1422_downloadAlg(...)
plug&play
driver
function.
Using the SFP "Algorithm Panel," an algorithm can be created and tested
and then stored to a file. The hpe1422_downloadAlg(...)
plug&play
driver
function was created specifically to download algorithms from files into the
VT1422A as part of the application program.
ALG:DEFINE in the
Programming
Sequence
*RST erases all previously defined algorithms. All algorithms must be
erased before beginning to re-define them (except in the special case
described in "Changing a Running Algorithm" on page 197 later in this
section).
ALG:DEFINE's
Three Data Formats
The ALG:DEFINE '<
alg_name
>','<
source_code
>' command sends an
algorithm's source code to the VT1422A's driver for translation to
executable code. The <
source_code
> parameter can be sent in one of two
forms:
1. SCPI Quoted String: For short segments (single lines) of code,
enclose the code string within single (apostrophes) or double quotes.
Because of string length limitations within SCPI and some
programming platforms, it is recommend that the quoted string length
not exceed a single program line. Example:
ALG:DEF 'ALG1','if(First_loop) O108=0; O108=O108+.01;'
2. SCPI Indefinite Length Block Program Data: This form terminates
the data transfer when it receives an End Identifier with the last data
byte. Use this form only when it is certain that the controller platform
will include the End Identifier. If it is not included, the ALG:DEF
command will "swallow" whatever data follows the algorithm code.
The syntax for this parameter type is:
#0<data byte(s)><null byte with End Identifier>
Example from "Quoted String" above:
ALG:DEF 'ALG1',#0O108=I100;
∅
(where "
∅
" is a null byte)
Содержание 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...