04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

7.7.1.2.1 Inserting Comments into Program<br />

Comments are non-executable text placed within the body of a program to<br />

document or clarify program algorithms.<br />

As shown in CRBasic example Inserting Comments (p. 110), comments are inserted<br />

into a program by preceding the comment with a single quote ('). Comments can<br />

be entered either as independent lines or following <strong>CR1000</strong> code. When the<br />

<strong>CR1000</strong> compiler sees a single quote ('), it ignores the rest of the line.<br />

CRBasic Example 4.<br />

Inserting Comments<br />

'Declaration of variables starts here.<br />

Public Start(6)<br />

'Declare the start time array<br />

7.7.2 Sending Programs<br />

The <strong>CR1000</strong> requires that a CRBasic program file be sent to its memory to direct<br />

measurement, processing, and data-storage operations. The program file can have<br />

the extension cr1 or .dld and can be compressed using the GZip algorithm before<br />

sending it to the <strong>CR1000</strong>. Upon receipt of the file, the <strong>CR1000</strong> automatically<br />

decompresses the file and uses it just as any other program file. See the appendix<br />

Program and OS Compression for more information.<br />

Programs are sent with:<br />

7.7.2.1 Preserving Data at Program Send<br />

• Program Send command in datalogger-support software (p. 77)<br />

• Program send command in Device Configuration Utility (DevConfig (p. 92))<br />

• CF card (CRD: drive) or <strong>Campbell</strong> <strong>Scientific</strong> mass-storage media (USB:<br />

drive)<br />

A good practice is to always retrieve data from the <strong>CR1000</strong> before sending a<br />

program; otherwise, data may be lost.<br />

Read More! See File Management (p. 340) and the CF card (CRD: drive) or<br />

<strong>Campbell</strong> <strong>Scientific</strong> mass-storage media (USB: drive) documentation available at<br />

www.campbellsci.com.<br />

When sending programs to the <strong>CR1000</strong> through the software options listed in<br />

table Program Send Options that Reset Memory (p. 111), memory is reset and data<br />

are erased.<br />

When data retention is desired, send programs using the File Control Send (p. 454)<br />

command or CRBasic Editor command Compile, Save, Send in the Compile<br />

menu. The window shown in figure CRBasic Editor Program Send File Control<br />

Window (p. 111) is displayed before the program is sent. Select Run Now, Run On<br />

Power-up, and Preserve data if no table changed before pressing Send<br />

Program.<br />

Note To retain data, Preserve data if no table changed must be selected<br />

whether or not CF card (CRD: drive) or <strong>Campbell</strong> <strong>Scientific</strong> mass-storage media<br />

(USB: drive) be connected.<br />

110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!