1 creating a new edlog program, 1 creating a new edlog program -2 – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 138

Advertising
background image

Section 8. Datalogger Program Creation with Edlog

Be careful when copying instructions from a program written for
one datalogger to a program for a different type of datalogger.
Instructions may differ between dataloggers.

NOTE

Input Location Labels – Though the datalogger uses a number to address input
locations, Edlog allows you to assign labels to these locations for ease of use
when programming and later when reviewing the data on-line. Edlog has
several features that aid in the management of these labels. A new Input
Location label is automatically assigned the next available Input Location
number (address). That Input Location can be picked from a list when needed
later in the program for further calculations or output. The Input Location
Editor (Section 8.2.3, Input Location Editor) allows the Input Locations to be
edited (moved, inserted, or deleted); the Input Location numbers are then
automatically updated 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 new locations to new labels. All
location numbers in the pasted code are updated accordingly.

Final Storage Label Editor – The Final Storage Label Editor allows you to
change the default labels assigned by Edlog. The labels are stored in the Final
Storage Label file for mixed-array dataloggers and as part of the datalogger
program for mixed-array and table-based (both table-data and PakBus)
dataloggers.

Expression Compiler – Mathematical calculations can be written algebraically
using Input Location labels as variables. When the program is compiled, Edlog
will convert the expressions to datalogger instructions.

For example, the following expression could be used to create a new input
location for temperature in degrees Fahrenheit from an existing input location
for temperatures in degrees Celsius.

TempF=TempC*1.8+32

8.1.1 Creating a New Edlog Program

To create a new datalogger program, choose File | New from the Edlog menu
and select the datalogger type from the dialog box. A window similar to the
one shown below appears.

8-2

Advertising