71 average, 72 totalize, 73 maximize – Campbell Scientific CR10X Measurement and Control System User Manual
Page 178: 74 minimize, 75 standard and weighted value histogram

SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
11-4
*** 71 AVERAGE ***
FUNCTION
This instruction stores the average value over
the given output interval for each input location
specified.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Repetitions
02:
4
Starting input location no.
Outputs Generated:
1 per repetition
*** 72 TOTALIZE ***
FUNCTION
This instruction stores totalized value over the given
output interval for each input location specified.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Repetitions
02:
4
Starting input location no.
Outputs Generated:
1 per repetition
*** 73 MAXIMIZE ***
FUNCTION
This instruction stores the MAXIMUM value taken
(for each input location specified) over a given
output interval. An internal FLAG is set whenever a
new maximum value is seen. This FLAG may be
tested by Instruction 79. Time of occurrence
maximum value(s) is OPTIONAL output
information, which is formatted and activated by
entering one of the following CODES for Param. 2.
Code
Options
00
Output value ONLY
01
Output value with SECONDS
10
Output value with HOUR-MINUTE
11
Output value with HR-MIN,SEC
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Repetitions
02:
2
Time of maximum
(optional)
03:
4
Starting input location no.
Outputs Generated:
1 per repetition
(1 or 2 additional outputs per repetition with time
option)
*** 74 MINIMIZE ***
FUNCTION
Operating in the same manner as Program 73,
this instruction is used for storing the MINIMUM
value (for each input location specified) over a
given output interval.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Repetitions
02:
2
Time of minimum
(optional)
03:
4
Starting input location
no.
Outputs Generated:
1 per repetition
(1 or 2 additional outputs per repetition with time
option)
*** 75 STANDARD AND WEIGHTED ***
VALUE HISTOGRAM
FUNCTION
Processes input data as either a standard
histogram (frequency distribution) or a weighted
value histogram.
The standard histogram outputs the fraction of
the Output Interval that the value in a specified
input location (defined as the bin select value) is
within a particular sub-range of the total
specified range. A counter in the bin associated
with each sub-range is incremented whenever
the value falls within that sub-range. The value
which is output to Final Storage for each bin is
computed by dividing the accumulated total in
each bin by the total number of scans. This
form of output is also referred to as a frequency
distribution.
The weighted value histogram uses data from 2
input locations. One location contains the bin
select value; the other contains the weighted
value. Each time the instruction is executed,
the weighted value is added to a bin. The sub-
range that the bin select value is in determines
the bin to which the weighted value is added.
When the Output Flag is set, the value
accumulated in each bin is divided by the
TOTAL number of input scans to obtain the
values that are output to Final Storage. These
values are the contributions of the sub-ranges
to the overall weighted value. To obtain the
average of the weighted values that occurred