1 example cr21x program, Example cr21x program – Campbell Scientific CS11-L Current Transformer User Manual
Page 23

CS11-L Current Transformer
The instructions listed below do not store data in final storage.
P92, P77, and output processing instructions such as P70 are
required to store the data permanently.
NOTE
6.4.1 Example CR21X Program
3: Z=F (P30)
1: 0.0
F
2: 4
Z Loc [ Counter ]
4: Beginning of Loop (P87)
1: 0000
Delay
2: 90
Loop
Count
5: Z=Z+1 (P32)
1: 4
Z Loc [ Counter ]
6: Volt (SE) (P1)
1:
1
Reps
2: 14
500 mV Fast Range
3:
1
SE
Channel
4: 57
-- Loc [ LoopAmp_1 ] ; Use F4 to get indexing --
5:
.2
Multiplier
6:
0.0
Offset
7: If (X<=>F) (P89)
1: 4
X Loc [ Counter ]
2:
1
=
3: 90
F
4: 10
Set
Output
Flag
High
8: Z=X (P31)
1: 57
-- X Loc [ LoopAmp_1 ] ; Use F4 to get indexing --
2: 3
Z Loc [ Sensor ]
9: Set Active Storage Area (P80)
1: 3
Input
Storage
2: 2
Loc [ Amp ]
10: Standard Deviation (P82)^15810
1: 1
Reps
2: 3
Sample Loc [ Sensor ]
11: End (P95)
The above CR21X program may provide an adequate waveform because the
program makes more than two measurements per period (Nyquist Frequency)
and samples many periods. However, if the datalogger’s Burst Measurement
Instruction is used with specific settings, the program will make more
measurements per cycle assuring that complete periods for both 50 and 60 Hz
(5 at 50 Hz and 6 at 60 Hz) will be monitored (see FIGURE 6-2).
17