VXi VT1529A/B 사용자 설명서

다운로드
페이지 529
244 VT1422A Command Reference  
ALGorithm
ALGorithm[:EXPLicit]:SCALar
ALGorithm[:EXPLicit]:SCALar ’<alg_name>’,’<var_name>’,<value
sets the 
value of the scalar variable <var_name> for algorithm <alg_name> into the Update 
Queue. This update is then pending until ALG:UPD is sent or an update event (as set 
by ALG:UPD:CHANNEL) occurs.
Note
ALG:SCALAR places a variable update request in the Update Queue. 
Do not place more update requests in the Update Queue than are allowed by the 
current setting of ALG:UPD:WINDOW or a "Too many updates – send 
ALG:UPDATE command" error message will be generated.
Parameters
Comments
To send values to a global scalar variable, set the <alg_name> parameter to 
'GLOBALS'. To define a scalar global variable see the ALGorithm:DEFine 
command.
An error is generated if <alg_name> or <var_name> is not defined.
Related Commands: ALG:DEFINE, ALG:SCAL?, ALG:UPDATE
*RST Condition: No algorithms or variables are defined.
Use VXIplug&play function: hpe1422_algExpScal(...)
Usage
ALG:SCAL 'ALG1','my_var',1.2345
1.2345 to variable my_var in ALG1
ALG:SCAL 'ALG1','another',5.4321
5.4321 to variable another also in ALG1
ALG:SCAL 'ALG3','my_global_var',1.001
1.001 to global variable
ALG:UPD
update variables from update queue
Parameter
Name
Parameter
Type
Range of
Values
Default 
Units
alg_name
string
ALG1 - ALG32 or GLOBALS
none
var_name
string
valid 'C' variable name
none
value
numeric (float32)
 IEEE-754 32-bit floating point number
none