2 renumbering the instructions, 3 compress view, 4 indention – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 285: 6 input locations, Renumbering the instructions -67, Compress view -67, Indention -67, Input locations -67

Advertising
background image

Section 7. Creating and Editing Datalogger Programs

Open the on-line help system.

7.4.5.2 Renumbering the Instructions

When Automatic Renumbering is enabled, the instructions are automatically

renumbered whenever instructions are inserted or deleted. By default,

Automatic Renumbering is enabled. Automatic renumbering can be turned off

by selecting Options | Editor if you have a very large program and auto

renumbering is slowing down editing. If automatic renumbering is disabled,

you can manually renumber the instructions by selecting Display | Renumber.

7.4.5.3 Compress VIEW

When Display | Compress is selected, only the first line of each instruction is

displayed. The compressed view makes it easier to see the program structure

and to move around in the program.

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.

7.4.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.

7.4.6 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.

7-67

Advertising