Specifications

NOTE! The initialization of the variable only occurs when the algorithm is first defined
with the ALG:DEF command. The first time the algorithm is executed (module
INITed and triggered), the value will be as initialized. But when the module is
stopped (ABORt command) and then re-INITiated, the variable will not
be
re-initialized but will contain the value last assigned during program execution. In
order to initialize variables each time the module is re-INITialized, see
“Determining First Execution” on page 111.
Global Variables To declare global variables, execute the SCPI command ALG:DEF
‘GLOBALS’,<program_string>. The <program_string> can contain simple
variable and array variable declaration/initialization statements. The string must not
contain any executable source code.
Example global definition (for <program_string> less than 256 characters):
ALG:DEF ‘GLOBALS’,’static float Scalar_global, Array_glob[10];
Example global definition (for <program_string> greater than 256 characters,
which requires the Indefinite Block Program Data format):
ALG:DEF ‘GLOBALS’,#0static float Scalar_global, Array_glob[10].....LF/EOI
The Algorithm Language and Environment
Algorithm Language Reference
128 Chapter 4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com