1 inserting comments into program, 2 sending programs, 1 preserving data at program send – Campbell Scientific CR3000 Micrologger User Manual
Page 115: Crbasic example 4. inserting comments

Section 7. Installation
115
channels, and processing instructions that compress many common
calculations used in CR3000 dataloggers.
These four elements must be properly placed within the program structure.
7.7.1.2.1 Inserting Comments into Program
Comments are non-executable text placed within the body of a program to
document or clarify program algorithms.
As shown in CRBasic example Inserting Comments
(p. 115),
comments are inserted
into a program by preceding the comment with a single quote ('). Comments can
be entered either as independent lines or following CR3000 code. When the
CR3000 compiler sees a single quote ('), it ignores the rest of the line.
CRBasic Example 4.
Inserting Comments
'Declaration of variables starts here.
Public
Start(6)
'Declare the start time array
7.7.2 Sending Programs
The CR3000 requires that a CRBasic program file be sent to its memory to direct
measurement, processing, and data-storage operations. The program file can have
the extension cr3 or .dld and can be compressed using the GZip algorithm before
sending it to the CR3000. Upon receipt of the file, the CR3000 automatically
decompresses the file and uses it just as any other program file. See the appendix
Program and OS Compression
for more information.
Programs are sent with:
• Program Send
command in datalogger-support software
(p. 76)
• Program send command in Device Configuration Utility (DevConfig (p. 97))
• CF card (CRD: drive) or Campbell Scientific mass-storage media (USB:
drive)
A good practice is to always retrieve data from the CR3000 before sending a
program; otherwise, data may be lost.
Read More! See File Management
(p. 346)
and the CF card (CRD: drive) or
Campbell Scientific mass-storage media (USB: drive) documentation available at
www.campbellsci.com.
7.7.2.1 Preserving Data at Program Send
When sending programs to the CR3000 through the software options listed in
table Program Send Options that Reset Memory
(p. 116),
memory is reset and data
are erased.
When data retention is desired, send programs using the File Control Send
(p. 456)
command or CRBasic Editor command Compile, Save, Send in the Compile
menu. The window shown in figure CRBasic Editor Program Send File Control
Window
(p. 116)
is displayed before the program is sent. Select Run Now, Run On
Power-up, and Preserve data if no table changed before pressing Send
Program.