Algorithm[:Explicit]:Scalar; Algorithm[:Explicit]:Scalar '<Alg_Name>','<Var_Name>',<Value - VXI VT1422A User Manual

Remote channel multi-function dac module user’s and scpi programming manual
Table of Contents

Advertisement

ALGorithm

ALGorithm[:EXPLicit]:SCALar

Note
Parameters
Comments
Usage
244 VT1422A Command Reference
ALGorithm[:EXPLicit]:SCALar '<alg_name>','<var_name>',<value>
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.
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.
Parameter
Parameter
Name
Type
alg_name
string
var_name
string
value
numeric (float32)
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(...)
ALG:SCAL 'ALG1','my_var',1.2345
ALG:SCAL 'ALG1','another',5.4321
ALG:SCAL 'ALG3','my_global_var',1.001
ALG:UPD
Range of
Values
ALG1 - ALG32 or GLOBALS
valid 'C' variable name
IEEE-754 32-bit floating point number
1.2345 to variable my_var in ALG1
5.4321 to variable another also in ALG1
1.001 to global variable
update variables from update queue
sets the
Default
Units
none
none
none
Chapter 7

Advertisement

Table of Contents
loading

Table of Contents