Campbell 21X Operator's Manual page 118

Micrologger
Table of Contents

Advertisement

***
61
INDEXED
MOVE
***
FUNCTION
Moves input
from location X to location
Y,
where X and Y
are indirectly addressed. The
values
of
thd location numbers X and Y are
stored
in
the locations specified by Parameters
1
and
2.
The
21X looks
in
the locations
specilied
in
the parameters to find the locations
to use as the source and destination
of
the data.
When used within a LOOP, a location parameter
can be specified as "indexed" (xxxx-), then the
actual Input location referenced
is
calculated by
adding the
current index counter to the value
in
the
specifie{
Input location.
PAR.
DATA]
NO.
TYPE]
DESCRIPTION
01: 4
Input location
in
which Source
Input location
is
stored
02: 4
Input location
in
which Destination
input location
is
stored
***
62
COVARIANCE/CORRELATION ***
FUNCTION
The special povariance/Correlation lnstruction
(CV/CR)
forlthe 21X
calculates:
1) means
(M),
2) varianceq
(V),3)
standard deviations (SD),
4)
covariances (CV), and 5) correlations (CR) for
a
set
of input yalues and stores the results in Input
Storage. Tfie instruction
requires
the set of
input
valueslto be located contiguously in Input
Storage. Tfie
user
specilies the location
of
the
first value afrd how many total
values
exist. The
number
of i4put values processed by each type
of
calculatioh (means, variances, etc.)
is
independen{ly specified for each
type.
The
order of
the linput
values determines which
inputs
are pfocessed for each type of
calculation.
The instruction does not conform to the 21X's
four instructfon
types.
Data located
in Input
Storage is processed, and
the results returned
to lnput Stotage whenever an averaging period
is
completed (Parameter 7)
or
the Output Flag
is
set.
The in$truction controlling the Output Flag
must precede
the CV/CR
lnstruction.
The
reason
the oalculated results are returned to
lnput
Stora{e
is
to allow
the user access for
additional
pfocessing before storing the values
in
FinalSto(age. Sample
Instruction
70 must be
SECTION
10.
PROCESSING INSTRUCTIONS
used to transfer
final results from lnput
to
Final
Storage.
To accommodate cases
where it
is
desirable
to
calculate
the statistical quantities over time
periods shorter than
the Output Interval,
an
averaging period shorter than
the Output Interval
may be
specified. The
finalvalues
obtained at
the
Output Intervalare the properly weighted
average
of
the values calculated at the
subinterval averaging
periods.
This feature
allows
the recording of statistical data over
longer time periods
by removing the effect of
longer period
frequencies
in
the input signals;
i.e., it provides
a high pass
filter.
For example,
assume the variance of
an input is
desired.
lt
is
determined that
the averaging period should
not
exceed
5 minutes due to variation
in
the mean
over longer time
intervals.
One approach
is
to
calculate
and record the variance every
5
minutes.
By specifying
the subinterval
averaging period as 5 minutes and the Output
Intervalas
t
hour, however,
the average
of
the
5
minute variances
are recorded every
hour. The
averaging period is entered as
the number of
input
samples in ParameterT ol the CV/CR
lnstruction. The
number of samples
for a given
period is given
by:
Number of SamPles
=
Averaginq oeriod in seconds
Table execution interval
in
seconds
PAR. DATA
NO. TYPE
DESCRIPTION
Number of input
values located
sequentially in input memory
Number
of means desired
Number of
variances desired
Number of standard deviations
desired
Number of
covariances desired
Number
of
correlations desired
Number of input
samples
in
averaging period
Input
storage location
of
first value
in sequential input string
First Input
Storage location to
store string of
final results
lf
the specified number of samples
in
the
averaging period (Parameter 7) exceeds the
actual number of samples occurring
in
the
Output Interval, the Output Interval becomes the
averaging period.
01:
2
02:
2
03:
2
04:
2
05:
2
06:
2
07:
FP
08:
4
09:
4
10-11

Advertisement

Table of Contents
loading

Table of Contents