EasyManua.ls Logo

Campbell CR6 - CRBasic Program Errors

Campbell CR6
285 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
time is required. If reps = 1 for consecutive voltage instructions, include the setup
time for each instruction.
Time-stamp skew is not a problem with most applications because:
l Program execution times are usually short; so, time-stamp skew is only a few milliseconds.
Most measurement requirements allow for a few milliseconds of skew.
l Data processed into averages, maxima, minima, and so forth are composites of several
measurements. Associated time stamps only reflect the time of the scan when processing
calculations were completed; so, the significance of the exact time a specific sample was
measured diminishes.
Applications measuring and storing sample data wherein exact time stamps are required can be
adversely affected by time-stamp skew. Skew can be avoided by:
l Making measurements in the scan before time-consuming code.
l Programming the data logger such that the time stamp reflects the system time rather than
the scan time using the DataTime() instruction. See the CRBasic Editor help for detailed
instruction information and program examples: https://help.campbellsci.com/crbasic/cr6/.
9.4 CRBasic program errors
Analyze data soon after deployment to ensure the data logger is measuring and storing data as
intended. Most measurement and data-storage problems are a result of one or more CRBasic
program bugs. Watch a video: CRBasic | Common Errors - Identifying and fixing common errors
in the CRBasic programming language.
9.4.1 Program does not compile
When a program is compiled, the CRBasic Editor checks the program for syntax errors and other
inconsistencies. The results of the check are displayed in a message window at the bottom of the
main window. If an error can be traced to a specific line in the program, the line number will be
listed before the error. Double-click an error preceded by a line number and that line will be
highlighted in the program editing window. Correct programming errors and recompile the
program.
9. Tips and troubleshooting 133

Table of Contents

Related product manuals