4 indention, 2 input locations, 1 entering input locations – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 152: 4 indention -16, 2 input, Locations -16, 1 entering, Input locations -16

Advertising
background image

Section 8. Datalogger Program Creation with Edlog

Instructions cannot be edited in the compress view mode. Use Display |
Uncompressed to switch back to the full view or use the <F7> function key to
toggle between the compressed and full views.

8.1.5.4 Indention

Indention is typically used with If Then/Else sequences and loops to provide a
visual key to program flow. Indention is a visual aid; it has no meaning to the
datalogger. If the programmer chooses to use indention, it can be done
automatically or manually.

The settings for indention are found under Options | Editor. Turn on Automatic
Indention by checking the box next to it. The distance for each indention (in
spaces) is set on the same dialog box. To manually indent an instruction, place
the cursor on one of the instruction’s parameters and press either <Ctrl>+right
arrow or <Ctrl>+left arrow; the instruction is indented the direction the arrow
is pointing.

The Display | Rebuild Indention menu item resets all existing indentions and
rebuilds automatic indentions. Automatic indentions may need to be rebuilt
when editing instructions causes the indentions to misalign.

8.2 Input Locations

An input location is the space in datalogger memory where the most recent
value is stored for each sensor. Each time a sensor is scanned, the input
location is overwritten with a new value. Input locations are referenced in the
datalogger by number.

In an Edlog program, each Input Location has an Input Location number and a
label that appear whenever the Input Location is referenced in the program.
Edlog automatically assigns Input Location numbers as labels are entered.

8.2.1 Entering Input Locations

When a parameter requires an Input Location, the cursor automatically
advances to where the label is keyed in. When a new label is entered, the next
available Input Location number is automatically assigned to that label. To
select an existing label from a list, press the right mouse button or <F6>.

You may prefer to enter all input locations into the Edlog program before
writing the program. This makes all the labels available from the input
location pick list, and can help reduce programming errors because of typos.
See Section 8.2.3, Input Location Editor.

Labels can have up to 9 characters for mixed-array dataloggers and 14
characters for table-based dataloggers. The first character must be a letter. The
allowed characters are letters, numbers, and the underscore character ( _ ). The
following labels are reserved for expressions and should not be entered by the
user: CSI_R, CSI_2, CSI_3,... CSI_95.

To enter the Input Location number instead of the label, use the mouse or press
<ctrl> left arrow.

8-16

Advertising