beautypg.com

2 sending programs, 1 preserving data at program send – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 110

background image

Section 7. Installation

110 

 

 

CRBasic Example 4.

Inserting Comments 

'Declaration of variables starts here.

Public

Start(6)

'Declare the start time array

 

7.7.2 Sending Programs

The CR800 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 cr8 or .dld and can be compressed using the GZip algorithm before
sending it to the CR800. Upon receipt of the file, the CR800 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. 92))
• Campbell Scientific mass-storage media (USB: drive)

A good practice is to always retrieve data from the CR800 before sending a
program; otherwise, data may be lost.

Read More! See File Management

(p. 324)

and the 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 CR800 through the software options listed in table
Program Send Options that Reset Memory

(p. 111),

memory is reset and data are

erased.

When data retention is desired, send programs using the File Control Send

(p. 431)

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. 111)

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
.

Note To retain data, Preserve data if no table changed must be selected
whether or not Campbell Scientific mass-storage media (USB: drive) be
connected.

Regardless of the program-upload tool used, if any change occurs to data table
structures listed in table Data Table Structures

(p. 111),

data will be erased when a

new program is sent.