Section 9. Programming
70
in the LoggerNet / PC400 datalogger support software suites. Programs can be
up to 19.6 KBytes in size although typical programs are smaller.
9.3.1
Short Cut Editor and Program Generator
Short Cut is easy-to-use menu-driven software that presents the user with lists of
predefined measurement, processing, and control algorithms from which to
choose. The user makes choices and Short Cut writes the CRBASIC code
required to perform the tasks. Short Cut creates a wiring diagram to simplify
connection of sensors and external devices.
Quickstart Tutorial
(p. 3) 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.
9.3.2
CRBASIC Editor
CR200(X) 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 CR200(X)
application program. CRBASIC Editor is available as part of LoggerNet /
PC400 / RTDAQ datalogger support software packages.
Fundamental elements of CRBASIC include:
•
Variables - named packets of CR200(X) 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 CR200(X) 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 CR200(X)
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 Help provides a list of keywords and pre-defined constants.
•
Common instructions - Instructions and operators used in most BASIC
languages, including program control statements, and logic and
mathematical operators.
•
Special instructions - Instructions unique to CRBASIC, including
measurement instructions that access measurement channels, and
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......