Specifications

NOTES 1. Channels referenced by algorithms when they are defined are only placed in the
channel list before INIT. The list cannot be changed after INIT. If an algorithm
is redefined (by swapping) after INIT and it references channels not already in
the channel list, it will not be able to access the newly referenced channels. No
error message will be generated. To make sure all required channels are
included in the channel list, define <alg_name> and re-define all algorithms that
will replace <alg_name> by swapping them before sending INIT. This insures
that all channels referenced in these algorithms will be available after INIT.
2. If an algorithm is redefined (by swapping) after INIT and it declares an existing
variable, the declaration-initialization statement (e.g. static float
my_var = 3.5) will not change the current value of that variable.
3. The driver only calculates overall execution time for algorithms defined before
INIT. This calculation is used to set the default output delay (same as executing
ALG:OUTP:DELAY AUTO). If an algorithm is swapped after INIT that take
longer to execute than the original, the output delay will behave as if set by
ALG:OUTP:DEL 0, rather than AUTO (see ALG:OUTP:DEL command). Use
the same procedure from note 1 to make sure the longest algorithm execution
time is used to set ALG:OUTP:DEL AUTO before INIT.
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
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
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.
VT1419A Command Reference
ALGorithm
192 Chapter 6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com