Instruction manual

PC208W, Version 3.0, Instruction Manual 2-1
SECTION 2. PROGRAM: EDLOG
2.1 INTRODUCTION
Choosing PROGRAM from the main PC208W
toolbar invokes the program EDLOG. EDLOG
is a tool for creating, editing, and documenting
programs for the CR7, CR10, CR10T, CR10X,
21X, and CR23X dataloggers.
EDLOG annotates the numeric instructions and
parameters that are normally entered into the
datalogger using the datalogger
keyboard/display. Instructions and parameters
can be picked from lists or entered manually,
and are easily edited, moved, or deleted.
Some highlights of EDLOG’s features are listed
below.
Context-Sensitive Help
If you need help with an instruction or
parameter,
press the right mouse button
. The
right mouse button brings up editor options, pick
lists or pop-up help for where you’re pointing.
Detailed help is available for the cursor location
by pressing <F1> or from a button on the pick
list. Help, pick lists, and edit functions are also
available from the menus or toolbar.
Cut and Paste
Several programs can be open simultaneously,
simplifying cutting and pasting between
programs for the same datalogger.
Input Location Labels
Measurement results and calculations are
stored in datalogger Input Locations. EDLOG
allows labeling these locations. For many
applications, EDLOG will manage the use of
Input Locations. A new Input Location label is
automatically assigned the next available Input
Location number (address). That Input
Location can be picked from a list for further
calculations or output. The Input Location
Editor (Section 2.7.3) allows the Input Locations
to be edited (moved, inserted, deleted); the
Input Location numbers are automatically
changed wherever the labels appear in the
program.
When a section of code is pasted into a
program, EDLOG will automatically use existing
locations for matching labels and assign
locations to new labels. All location numbers in
the pasted code are updated accordingly.
The programmer that wants to assign labels to
specific Input Locations may find it easiest to
enter the labels in the Input Location Editor first
and then pick them from a list as the program is
written.
Expression Interpreter
Mathematical calculations can be written
algebraically using Input Location labels as
variables. For example, the following expression
could be used to create a location that holds the
temperature in Fahrenheit (TempF) which is
calculated from the temperature in Celsius
(TempC):
TempF=TempC*1.8+32
EDLOG will compile the expression into
datalogger instructions, creating locations for
intermediate steps if necessary (Section 2.5).
Compiler
EDLOG compiles the program to check for
errors and create the file that is downloaded to
the datalogger. The download file (*.DLD)
excludes all comments and incorporates the
instructions required to calculate the
expressions. During the compile step, a Final
Storage Label file (*.FSL) that lists the labels
used by the program and a Program Trace
Information file (*.PTI) are also created (Section
2.9).