
Section 7. Installation
109
sensors and external devices.
Quickstart Tutorial
(p. 33)
works through a
measurement example using
Short Cut
.
For many complex applications,
Short Cut
is still a good place to start. When as
much information as possible is entered,
Short Cut
will create a program template
from which to work, already formatted with most of the proper structure,
measurement routines, and variables. The program can then be edited further
using
CRBasic Program Editor
.
7.7.1.2 CRBasic Editor
CR800 application programs are written in a variation of BASIC (Beginner's All-
purpose Symbolic Instruction Code) computer language, CRBasic (Campbell
Recorder BASIC).
CRBasic Editor
is a text editor that facilitates creation and
modification of the ASCII text file that constitutes the CR800 application
program.
CRBasic Editor
is a component of
LoggerNet
(p. 548),
RTDAQ
,
and
PC400
datalogger-support software
(p. 76)
packages.
Fundamental elements of CRBasic include:
•
Variables - named packets of CR800 memory into which are stored values
that normally vary during program execution. Values are typically the result
of measurements and processing. Variables are given an alphanumeric name
and can be dimensioned into arrays of related data.
•
Constants - discrete packets of CR800 memory into which are stored specific
values that do not vary during program executions. Constants are given
alphanumeric names and assigned values at the beginning declarations of a
CRBasic program.
Note
Keywords and predefined constants are reserved for internal CR800 use. If
a user-programmed variable happens to be a keyword or predefined constant, a
runtime or compile error will occur. To correct the error, simply change the
variable name by adding or deleting one or more letters, numbers, or the
underscore (_) from the variable name, then recompile and resend the program.
CRBasic Editor Help
provides a list of keywords and pre-defined constants.
•
Common instructions - Instructions (called "commands" in BASIC) and
operators used in most BASIC languages, including program control
statements, and logic and mathematical operators.
•
Special instructions - Instructions (called "commands" in BASIC) unique to
CRBasic, including measurement instructions that access measurement
channels, and processing instructions that compress many common
calculations used in CR800 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. 110),
comments are inserted
into a program by preceding the comment with a single quote (
'
). Comments can
be entered either as independent lines or following CR800 code. When the CR800
compiler sees a single quote (
'
), it ignores the rest of the line.
Summary of Contents for CR850
Page 2: ......
Page 4: ......
Page 6: ......
Page 26: ...Table of Contents 26...
Page 30: ...Section 2 Cautionary Statements 30...
Page 32: ...Section 3 Initial Inspection 32...
Page 35: ...Section 4 Quickstart Tutorial 35 Figure 2 Wiring panel...
Page 55: ...Section 4 Quickstart Tutorial 55 Figure 24 PC200W View data utility...
Page 78: ...Section 5 System Overview 78...
Page 80: ...Section 6 CR800 Specifications 80...
Page 267: ...Section 7 Installation 267 Figure 84 Running average signal attenuation...
Page 268: ...Section 7 Installation 268...
Page 384: ...Section 8 Operation 384 Figure 113 Using the keyboard display...
Page 387: ...Section 8 Operation 387 Figure 116 Real time custom...
Page 388: ...Section 8 Operation 388 8 8 1 3 Final Storage Tables Figure 117 Final storage tables...
Page 389: ...Section 8 Operation 389 8 8 2 Run Stop Program Figure 118 Run Stop Program...
Page 390: ...Section 8 Operation 390 8 8 3 File Display Figure 119 File display...
Page 396: ...Section 8 Operation 396...
Page 402: ...Section 9 Maintenance 402...
Page 450: ...Section 11 Glossary 450...
Page 504: ...Appendix A CRBasic Programming Instructions 504...
Page 526: ...Appendix B Status Table and Settings 526...
Page 530: ...Appendix C Serial Port Pinouts 530...
Page 536: ...Appendix E FP2 Data Format 536...
Page 550: ...Appendix F Other Campbell Scientific Products 550...
Page 565: ......