
SECTION 10. PROCESSING INSTRUCTIONS
10-13
The Averaging Period Processing occurs
whenever the number of input samples entered
in Parameter 7 is satisfied or whenever an
Output Interval occurs (i.e., whenever the Output
Flag is set). Results from these calculations are
stored sequentially in Input Storage locations
starting with the location specified in Parameter
9. The calculations performed are shown below,
where N is the number of input samples in the
averaging period:
1.
Means:
M(X) =
Σ
X/N
2.
Variances:
V(X) =
Σ
X
2
/N - (
Σ
X/N)
2
3.
Standard Deviations:
SD(X) = V(X)
1/2
4.
Covariances:
CV(X,Y) =
Σ
XY/N -
Σ
X
Σ
Y/N
2
5.
Correlations:
CR(X) = CV(X,Y)/(SD(X)SD(Y))
NOTE:
1. The square root algorithm in the
CR23X returns a result of 0 for
negative arguments.
2. The divide algorithm returns the
largest floating point number possible
(
±
10
18
displayed as
±
99999) for a
divide by 0.
3. When computing the variance of a
constant signal, round off error
produces a small negative result.
The CR23X returns a 0 for the
square root of a negative number;
therefore, the standard deviation is
set to 0. If the signal is also used in a
correlation calculation, division by 0
returns an overrange value for the
correlation result.
If a fast execution interval is specified, it is
possible that the combined execution times of
the input and averaging period processing may
exceed the program table execution interval.
The occurrence of an execution interval Overrun
(see Section 1.1.1 of CR23X Operator's Manual)
is noted by a “
T
o
” in the lower right of the display
in the Running Table mode (
0
mode).
This results in the omission of one input sample.
The calculations are not affected, however, since
the number of input samples is incremented only
when valid input processing occurs. Averaging
period processing occurs only when the number
of input samples specified in Parameter 7 is
accumulated.
Regardless of whether all of the input samples
for the averaging period (specified in Parameter
7) have occurred or not, averaging period
processing occurs whenever the Output Flag is
set. This accommodates situations where the
Output Interval may not be an integer multiple of
the averaging period. If for example a 30 minute
Output Interval is set by Instruction 92 and an 8
minute averaging period is specified by
Parameter 7, then three 8 minute and one 6
minute calculations will occur. The proper
weighting of these values in producing the final
output is described below.
The Output Processing occurs only at the
Output Interval and involves averaging the
statistical results obtained at the averaging
periods. These final results are then stored
sequentially in Input Storage beginning with the
location specified in Parameter 9. The Sample
Instruction 70 must be used to transfer the data
to Final Storage. All but the last averaging
period in the Output Interval will contain the
same number of input scans as specified by
Parameter 7. To insure that results from the
averaging periods contribute to the final result
proportional to their averaging periods, the
output processing uses the following equation:
RF = (NR1 + NR2 + .... + N'RL)/NT
RF is the final result
R1 R2, etc., are the results from the averaging
period processing
RL is the result from the last averaging period
in the Output Interval
N
is the number of input samples in the
specified averaging period (Parameter 7)
N' is the number of input scans in the last
averaging period
NT is the total number of input samples
processed in the Output Interval
INTERMEDIATE STORAGE REQUIREMENTS
The number of Intermediate locations will
depend upon the number of input values and
outputs desired:
1.
Define K as the number of input values.
2.
Define S as the maximum of either the
variances, standard deviations, or C, where
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Page 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...