ALGorithm
ALGorithm[:EXPLicit]:ARRay
Parameters
Comments
Usage
166 HP E1415 Command Reference
ALGorithm[:EXPLicit]:ARRay '< alg_name >','< array_name >',< array_block >
places values of <array_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:ARRAY places a variable update request in the Update Queue. You
can 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
array_name
string
array_block
block data
•
To send values to a Global array, set the <alg_name> parameter to
"GLOBALS". To define a global array see the ALGorithm:DEFine command.
•
An error is generated if <alg_name> or <array_name> is not defined.
•
When an array is defined (in an algorithm or in 'GLOBALS'), the HP E1415
allocates twice the memory required to store the array. When you send the
ALG:ARRAY command, the new values for the array are loaded into the
second space for this array. When you send the ALG:UPDATE, or
ALG:UPDATE:CHANNEL commands, the HP E1415 switches a pointer to
the space containing the new array values. This is how even large arrays can be
"updated" as if they were a single update request. If the array is again updated,
the new values are loaded into the original space and the pointer is again
switched.
•
<progname> is not case sensitive. However, <array_name> is case sensitive.
•
Related Commands: ALG:DEFINE, ALG:ARRAY?
•
*RST Condition: No algorithms or variables are defined.
send array values to my_array in ALG4
ALG:ARR 'ALG4','my_array',< block_array_data >
send array values to the global array glob_array
ALG:ARR 'GLOBALS','glob_array',< block_array_data >
ALG:UPD
Range of
Values
ALG1 - ALG32 | GLOBALS
valid 'C' variable name
block of IEEE-754 64-bit floating point
numbers
force update of variables
Default
Units
none
none
none
Chapter 6