9.1.6 Variable out of bounds
Variable-out-of-bounds errors happen when an array is not sized to the demands of the
program. The datalogger attempts to catch out-of-bounds errors at compile time. However, it is
not always possible; so, these errors may occur during runtime. Variable-out-of-bounds errors are
always caused by programming problems.
9.1.7 Battery voltage
If powering through USB, reported battery voltage should be 0 V. If connecting to an external
power source, battery voltage should be reported at or near 12 V. See also:
l
l
9.2 Understanding NAN and INF
occurrences
NAN (not a number) and INF (infinite) are data words indicating an exceptional occurrence in
datalogger function or processing. INF indicates that the program has encountered an arithmetic
expression that is undefined. NAN indicates an invalid measurement. For more information, see
NANs are expected in the following conditions:
l
Input signals exceed the voltage range chosen for the measurement.
l
An invalid SDI-12 command is sent
l
An SDI-12 sensor does not respond or aborts without sending data
l
Undefined arithmetic expressions, such as 0 ÷ 0.
NAN is a constant that can be used in expressions. This is shown in the following code snip that
sets a CRBasic variable to False when the wind direction is NAN:
If
WindDir = NAN
Then
WDFlag = False
Else
WDFlag = True
EndIf
If an output processing instruction encounters a NAN in the values being processed, NAN will be
stored. For example, if one measurement in a data storage interval results in NAN, then the
average, maximum and minimum will record NAN.
9. Tips and troubleshooting
115
Summary of Contents for CR1000X
Page 1: ...Revision 02 21 2019 Copyright 2000 2019 Campbell Scientific ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 16: ...Appendix A Glossary 176 Appendix B Index 214 Table of Contents viii ...
Page 192: ......