Section 6. Data Table Declarations and Output Processing Instructions
6-19
LevelCrossing (Source, DataType, DisableVar, NumLevels, 2ndDim,
CrossingArray, 2ndArray, Hysteresis, Option)
Parameter
& Data Type
Enter
Source
Variable or
Array
The variable that is tested to determine if it crosses the specified levels. If a two
dimensional level crossing is selected, the source must be an array. The second
element of the array (or the next element beyond the one specified for the
source) is the variable that is tested to determine the second dimension of the
histogram.
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
included in the histogram. The histogram that is eventually stored includes the inputs that
occurred while the disable variable was 0.
Value
Result
0
Process current input
≠
0
Do not process current input
NumLevels
Constant
The number levels on which to count crossings. This is the number of bins in which to
store the number of crossings for the associated level. The actual levels are input in the
Crossing Array. A count is added to a bin when the Source goes from less than the
associated level to greater than the associated level (Rising edge or positive polarity). Or
if Falling edge or negative polarity is selected, a count occurs if the source goes from
greater than the level to less than the level.
2ndDim
Constant
The second dimension of the histogram. The total number of bins output =
NumLevels*2ndDim. Enter 1 for a one dimensional histogram consisting only of the
number of level crossings. If 2ndDim is greater than 1, the element of the source array
following the one tested for level crossing is used to determine the second dimension.
Crossing
Array
Array
The name of the Array that contains the Crossing levels to check. Because it does not
make sense to change the levels while the program is running, the program should be
written to load the values into the array once before entering the scan.
2ndArray
Array
The name of the Array that contains the levels that determine the second dimension.
Because it does not make sense to change the levels while the program is running, the
program should be written to load the values into the array once before entering the scan.
Hysteresis
Constant
The minimum change in the source that must occur for a crossing to be counted.
Option
Constant
The Option code is 3 digits - ABC
Code
Form
A = 0
Count on falling edge (source goes form > level to <level)
A = 1
Count on rising edge (source goes from < level to >level)
B = 0
Reset histogram counts to 0 after each output.
B = 1
Do not reset histogram; continue to accumulate counts.
C = 0
Divide count in each bin by total number of counts in all bins.
C = 1
Output total counts in each bin.
101 means: Count on rising edge, reset count to 0 after each output, output
counts.
Содержание CR5000
Страница 39: ...Section 1 Installation and Maintenance 1 15 S A N Y O FIGURE 1 11 6 Removal of band clamp and battery ...
Страница 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Страница 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Страница 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Страница 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Страница 206: ......
Страница 236: ...Index Index 4 This is a blank page ...
Страница 237: ...This is a blank page ...