Specifications
b. The <alg_name> has not already been defined since a *RST command.
Here
<alg_name> specifines either an algorithm name or ‘GLOBALS.’
OK
*RST
ALG:DEF ‘GLOBALS’,’static float My_global;’
Error
*RST
ALG:DEF ‘GLOBALS’,’static float My_global;’
“No error”
ALG:DEF ‘GLOBALS’,’static float A_different_global’
“Algorithm already defined” Because ‘GLOBALS’ already defined
Error
*RST
ALG:DEF ‘ALG3’,’static float z;if(First_loop)z=0;z=z+1;’
“No error”
ALG:DEF ‘ALG3’,’static float Cntr, Inc; O132 = Cntr; Cntr = Cntr + Inc;’
“Algorithm already defined” Because ‘ALG3’ already defined
2.
If <alg_name> has been enabled to swap (originally defined with the
<swap_size> parameter included) then the <alg_name> can be re-defined (do
not include (swap_size> now) either while the module is in the Trigger Idle
State or while in Waiting For Trigger State (INITed). Here <alg_name>isan
algorithm name only, not
‘GLOBALS’.
OK
*RST
ALG:DEF ‘ALG3’,200,’if(O132<15.0) O132=O132 + 0.1; else O132 = -15.0;’
INIT starts algorithm
ALG:DEF ‘ALG3’,’if(O132<12.0) O132=O132 + 0.2; else O132 = -12.0;’
ALG:UPDATE Required to cause new code to run
“No error”
Error
*RST
ALG:DEF ‘ALG3’,200,’if(O132<15.0) O132=O132 + 0.1; else O132 = -15.0;’
INIT starts algorithm
ALG:DEF ‘ALG3’,200,’if(O132<12.0) O132=O132 + 0.2; else O132 = -12.0;’
“Algorithm swapping already enabled; Can’t change size”
Because <swap_size> included at re-definition
VT1419A Command Reference
ALGorithm
Chapter 6 191
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










