Maximum (reps, source, datatype, disablevar, time), Minimum (reps, source, datatype, disablevar, time) – Campbell Scientific CR5000 Measurement and Control Module User Manual
Page 117

Section 6. Data Table Declarations and Output Processing Instructions
6-23
The hysteresis determines the minimum change in the input that must occur
before a crossing is counted. If the value is too small, “ crossings” could be
counted which are in reality just noise. For example, suppose 5 is a crossing
level. If the input is not really changing but is varying from 4.999 to 5.001, a
hysteresis of 0 would allow all these crossings to be counted. Setting the
hysteresis to 0.1 would prevent this noise from causing counts.
Maximum (Reps, Source, DataType, DisableVar, Time)
This instruction stores the MAXIMUM value that occurs in the specified
Source variable over the output interval. Time of maximum value(s) is
OPTIONAL output information, which is selected by entering the appropriate
code in the time parameter.
Parameter
& Data Type
Enter
Reps
Constant
The number of maximum values to determine. When repetitions are greater than 1, the
source must be an array..
Source
Variable
The name of the Variable that is the input for the instruction.
DataType
A code to select the data storage format.
Constant
Alpha Code
Numeric Code
Data Format
IEEE4
24
IEEE 4 byte floating point
FP2
7
Campbell Scientific 2 byte floating point
DisableVar
Constant,
Variable, or
Expression
A non-zero value will disable intermediate processing. Normally 0 is entered so all inputs
are processed. For example, when the disable variable is
≠
0 the current input is not
checked for a new maximum. The maximum that is eventually stored is the maximum
that occurred while the disable variable was 0.
Value
Result
0
Process current input
≠
0
Do not process current input
Time
Option to store time of Maximum. When time is output, the maximums for all reps are
output first followed by the respective times at which they occurred.
Constant
Value
Result
0
Do not store time
1
Store time
Minimum (Reps, Source, DataType, DisableVar, Time)
This instruction stores the MINIMUM value that occurs in the specified Source
variable over the output interval. Time of minimum value(s) is OPTIONAL
output information, which is selected by entering the appropriate code for
Parameter
& Data Type
Enter
Reps
Constant
The number of minimum values to determine. When repetitions are greater than 1, the
source must be an array..
Source
Variable
The name of the Variable that is the input for the instruction.