VXi VT1529A/B 사용자 설명서

다운로드
페이지 529
242 VT1422A Command Reference  
ALGorithm
When accepted
and Usage
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 'ALG2','PIDA(I100,O108)'
ALG:DEF 'ALG3','My_global = My_global + 1;'
Error
INIT
ALG:DEF 'ALG5','PIDB(I101,O109,O124.B0)'
"Can't define new algorithm while running"
b. The <alg_name> has not already been defined since a *RST command. 
Here <alg_name> specifies 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','PIDA(I100,O108)'
"No error"
ALG:DEF 'ALG3','PIDB(I100,O108,O124.B0)'
"Algorithm already defined"
Because 'ALG3' already defined