Minimum (reps, source, datatype, disablevar, time), Median parameters, Minimum parameters – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 210

Section 6. Data Table Declarations and Output Processing Instructions
Parameter &
Data Type
Enter
MEDIAN PARAMETERS
Reps
Constant
Number of variables for which to calculate a median (separate median will be calculated
for each variable). If Reps parameter is greater than 1, an array must be specified for
Source. If not, a Variable Out of Bounds error will be returned when the program is
compiled.
Source Variable
Array
The name of the variable(s) for which the median(s) should be calculated.
MaxN Variable
Array
The maximum number of values, for each median, that the datalogger should maintain in
memory for the instruction, from which the median will be calculated.
DataType
A code to select the data storage format.
Read More: See Section 4.2.4.4 Data Types
Constant
Alpha Code
Numeric Code
Data Format
IEEE4
24
IEEE 4 byte floating point
FP2
7
Campbell Scientific 2 byte floating point
UINT2
21
2 Byte unsigned integer
Long
20
4 Byte Integer value
DisableVar
A non-zero value will disable intermediate processing: input is not included in the
Covariance.
Constant,
Value Result
Variable, or
0
Process current input
Expression
≠ 0
Do not process current input
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 in the time
parameter. NANs are ignored by this output processing instruction.
Parameter
& Data Type
Enter
MINIMUM PARAMETERS
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.
DataType
A code to select the data storage format. Read More: See Section 4.2.4.4 Data Types
Constant
Alpha Code
Numeric Code
Data Format
IEEE4
24
IEEE 4 byte floating point
FP2
7
Campbell Scientific 2 byte floating point
UINT2
21
2 Byte unsigned integer
Long
20
4 Byte Integer value
DisableVar
Constant,
Variable, or
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 minimum. The
minimum that is eventually stored is the minimum that occurred while the disable variable was 0.
Expression
Value Result
0
Process current input
≠ 0
Do not process current input
Time
Constant
Option to store time of Minimum. When time is output, the minimum values for all repetitions are
output first followed by the times at which they occurred.
Value Result
0
Do not store time
1
Store time
Time of max is stored in the NSec format
6-26