Section 10. Processing Instructions
10-7
Instruction 52: Running Average
This instruction calculates the running average of a value in an input location. The
most recent ‘n’ values (where ‘n’ is the number specified in parameter 4) are kept
in intermediate storage. When Instruction 52 is executed, the current value is
written over the oldest value, and the average of the values is calculated and
stored in the destination location. Out of range values (displayed as -99999.) are
not included in the average.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Reps (REPS)
02:
4
Input location of source data
03:
4
Destination input location
04:
4
Number of values in running average window
(NUMAVG)
Input locations altered:
1 per repetition
Intermediate locations required:
Reps * (2+n)
Instruction 53: Scaling Array with Multiplier and Offset
This instruction takes four input location values, multiplies each by a floating
point constant, then adds another floating point constant to the resulting products
and places the final results back into each of the original four input locations.
PAR.
DATA
NO.
TYPE
DESCRIPTION
01:
4
First input location
[STRT LOC]
02:
FP
Multiplier 1
[A1]
03:
FP
Offset 1
[B1]
04:
FP
Multiplier 2
[A2]
05:
FP
Offset 2
[B2]
06:
FP
Multiplier 3
[A3]
07:
FP
Offset 3
[B3]
08:
FP
Multiplier 4
[A4]
09:
FP
Offset 4
[B4]
Input locations altered:
4
Instruction 54: Block Move
This instruction executes a ‘block move’ of data in input locations. Parameters
specify the number of values to move, the source, source step, destination, and
destination step. The ‘step’ parameters designate the increment of the source and
destination input locations for each value that is moved. For example, a ‘source
step’ of two and a ‘destination step‘ of 1 will move data from every other input
location to a contiguous block of input locations.