Specifications

9-1
Section 9. CR1000 Programming
9.1 Inserting Comments into Program
Comments are non-functioning text placed within the body of a program to
document or clarify program algorithms.
As shown in EXAMPLE 9.1-1, comments are in
serted into a program by
preceding the comment with a single quote ('). Comments can be entered
either as independent lines or following CR1000 code. When the CR1000
compiler sees a single quote ('), it ignores the rest of the line.
EXAMPLE 9.1-1. CRBASIC Code: Inserting Comments
'Declaration of variables starts here.
Public Start(6) 'Declare the start time array
9.2 Uploading CR1000 Programs
The CR1000 requires a program be sent to its memory to direct measurement,
processing, and data storage operations. Programs are sent with PC200W,
PC400, or LoggerNet support software. Programs can also be sent from a CF
card.
Read more! See 12.6 File Control and the CF card storage module
manual.
Tips from the field—using the default .cr1 file: “It has happened once again, a
user sends a bad program to their remote CR1000 and locks it up. This
requires a site visit because they were using SW12 to turn on / off their modem
and it has turned off. There is a solution... the default.cr1 file. This program,
should it exist on the logger, will run if a program that won't compile is sent.”
For more information on default.cr1, go to Section 8.2.2 Sending OS to
Remote CR1000.
9.3 Writing CR1000 Programs
Programs are created with either Short Cut, CRBASIC Editor, or Transformer.
Short Cut is available at no charge at www.campbellsci.com
. CRBASIC
Editor and Transformer are programs in PC400 and LoggerNet Datalogger
Support Software Suites.
“Transformer”, a utility included with PC400 and LoggerNet
Software, converts most CR10X datalogger code to CR1000
datalogger code.
NOTE