2 repetitions, 3 input location editor, 2 repetitions -17 8.2.3 input – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 153: Location editor -17

Advertising
background image

Section 8. Datalogger Program Creation with Edlog

8.2.2 Repetitions

Many input/output and output processing instructions have a repetitions
parameter. Repetitions (REPS) allow one programming instruction to measure
several identical sensors or to process data from several Input Locations.
When REPS are greater than 1, the Input Locations are assigned consecutive
numbers (e.g., with REPS of 2 and LOC of 5, the Input Locations are 5 and 6).
Each rep label is the initial label with a “_” and the next consecutive number
(i.e., with 3 REPS and a label of “data” the labels for each REP are: data_1,
data_2, and data_3).

Only the first input location of an instruction is linked to the instruction. Reps
of input/output instructions and output processing instructions are not linked,
so use care if altering their sequence in the Input Locations Editor.

As an example, in the following section of an Edlog program, the TempC and
BatteryV Input Locations are sampled with one sample (P70) instruction, with
the REPS parameter of 2.

10: Temperature (107) (P11)
1: 1

REPS

2: 2

Channel

3: 1

Excitation

Channel

4: 1

Loc

[TempC]

5: 1

Mult

6: 0

Offset


11: Battery, Volt (P10)
1: 2

Loc

[BatteryV]

12: If time is (P92)
1: 0

minutes into interval

2: 60

minute

interval

3: 10

Set

high

Flag

0(output)


13: Sample (P70)
1: 2

Reps

2: 1

Loc

[TempC]

When the program is executed, the datalogger will perform the Sample (P70)
instruction twice. The first time, it will sample the value stored in the TempC
location. The second time, it will sample the value stored in the BatteryV
location.

If an Input Location is inserted between the TempC and
BatteryV location, the inserted location will be sampled instead
of BatteryV.

NOTE

8.2.3 Input Location Editor

Input Location labels can be entered and edited by using the Input Location
Editor. To access the Input Location Editor, select Edit | Input Labels or press
<F5>.

8-17

Advertising