Campbell Scientific CR9000X Measurement and Control System User Manual
Page 203

Section 6. Data Table Declarations and Output Processing Instructions
that the value of BinSelect was within Bin 4's range 30 percent of the time of
the Data Table's output rate. In reality, it is only 1/2 of that (15% of the time)
because 50% of the time, none of the bin's values are being incremented.
The difference between the closed and open form is shown in the following
example for temperature values:
Lower range limit
10
° C
Upper range limit
30
° C
Number of bins
10
Closed Form
Open Form
Range of first bin
10 to <12
° <
12
°
Range of last bin
28 to <30
° >
28
°
Parameter
& Data Type
Enter
HISTOGRAM PARAMETERS
BinSelect
Variable or
Array
The variable that is tested to determine which bin is selected. The histogram 4D instruction requires an
array dimensioned with at least as many elements as histogram dimensions.
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
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 included in the histogram. The
histogram that is eventually stored includes the inputs that occurred while the disable variable was 0. The
Disable variable can be used to remove NANs from the results of the histogram (use "BinSelect = NAN"
for the DisableVar expression).
Special use case: Set equal to 12345 and the histogram will reset after it outputs.
Set equal to -12345 and the histogram will reset immediately.
Value Result
0
Process current input
≠ 0
Do not process current input
Bins
Constant
The number of bins or subranges to include in the histogram bin select range. The width of each
subrange is equal to the bin select range (UpLim - LowLim) divided by the number of bins.
Form
Constant
The Form argument is 3 digits - ABC
Code Form
A = 0
Reset histogram after each output.
A = 1
Do not reset histogram.
See DisableVar for
override function
B = 0
Divide bins by total count.
B = 1
Output total in each bin.
C = 0
Open form. Include outside range values in end bins.
C = 1
Closed form. Exclude values outside range.
101 means: Do not reset. Divide bins by total count. Closed form.
WtVal
Constant or
Variable
The variable name of the weighted value. Enter a constant for a frequency distribution of the BinSelect
value.
LowLim
Constant
The lower limit of the range covered by the bin select value.
UpLim
Constant
The upper limit of the range of the bin select value.
6-19