Specifications
ALG:DEF ‘ALG1’,#211O132=I100;Ø (where “Ø” is a null byte, required for
C-SCPI only)
NOTE for
C-SCPI
For Block Program Data, the Algorithm Parser requires that the <source_code>
data end with a null (Ø) byte. The null byte must be appended to the end of the
block’s <data byte(s)> and account for it in the byte count <digit(s)> from above.
If the null byte is not included or <digit(s)> doesn’t include it, the error “Algorithm
Block must contain termination ‘\0’” will be generated.
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’,#0O132=I100;Ø (where “Ø” is a null byte, required for
C-SCPI only)
NOTE for
C-SCPI
For Block Program Data, the Algorithm Parser requires that the <source_code>
data end with a null (Ø) byte. The null byte must be appended to the end of the
block’s <data byte(s)>. The null byte is sent with the End Identifier. If the null byte
is not included, the error “Algorithm Block must contain termination ‘\0’” will be
generated.
When accepted
and Usage
1. If <alg_name> is not enabled to swap (not originally defined with the
<swap_size> parameter included) then both of the following conditions must be
true:
a. Module is in Trigger Idle State (after *RST or ABORT and before INIT).
OK
*RST
ALG:DEF ‘GLOBALS’,’static float My_global;’
ALG:DEF ‘ALG3’,’My_global = My_global + 1;’
Error
INIT
ALG:DEF ‘ALG5’,’static float a_out; O136=a_out;’
“Can’t define new algorithm while running”
VT1419A Command Reference
ALGorithm
190 Chapter 6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










