Specifications

Section 8. Processing and Math Instructions
8-19
Remarks
Finds the maximum value in the given array and places the result in the
variable named in Dest. The Source must be a particular element in an array
(e.g., Temp(1)); it is the first element in the array
Parameter
& Data Type
Enter
Dest
Variable
The variable in which to store the maximum.
Swath
Constant
The number of values of the source array in which to search for the maximum.
Source
Array
The name of the variable array that is the input for the instruction.
MaxSpa Function Example
This example uses MaxSpa to find the maximum value of the five elements
Temp(6) through Temp(10) and store the result in the variable MaxTemp.
MaxSpa(MaxTemp, 5, Temp(6))
MinSpa (Dest, Swath, Source)
Finds the minimum value in an array.
Syntax
MinSpa(Dest, Swath, Source)
Remarks
Finds the minimum value in the given array and places the result in the
variable named in Dest. The Source must be a particular element in an array
(e.g., Temp(1)); it is the first element in the array to check for the minimum.
The Swath is the number of elements to compare for the minimum.
Parameter
& Data Type
Enter
Dest
Variable
The variable in which to store the results of the instruction.
Swath
Constant
The number of values of the source array in which to search of the minimum.
Source
Array
The name of the variable array that is the input for the instruction.
MinSpa Function Example
This example uses MinSpa to find the minimum value of the five elements
Temp(6) through Temp(10) and store the result in the variable MinTemp.
MinSpa(MinTemp, 5, Temp(6))