Sample (reps, source, datatype), Stddev (reps, source, datatype, disablevar) – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 120

Advertising
background image

Section 6. Data Table Declarations and Output Processing Instructions

6-26

C

1,1

C

1,2

.

.

.

C

1,N

C

2,1

C

2,2

.

.

.

C

2,N

.

.

.

.

.

.

.

.

.

.

.

.

C

M,1

C

M,2

.

.

.

C

M,N

The histogram can have either open or closed form. In the open form, a cycle
that has an amplitude larger than the maximum bin is counted in the maximum
bin; a cycle that has a mean value less than the lower limit or greater than the
upper limit is counted in the minimum or maximum mean bin. In the closed
form, a cycle that is beyond the amplitude or mean limits is not counted.

The minimum distance between peak and valley, MinAmp, determines the
smallest amplitude cycle that will be counted. The distance should be less than
the amplitude bin width ([high limit - low limit]/no. amplitude bins) or cycles
with the amplitude of the first bin will not be counted. However, if the value is
too small, processing time will be consumed counting "cycles" which are in
reality just noise.

Outputs Generated:

No. Mean Bins x No. Amplitude Bins x Reps

Sample (Reps, Source, DataType)

This instruction stores the current value(s) at the time of output from the
specified variable or array.

Parameter
& Data Type

Enter

Reps

Constant

The number of values to sample. When repetitions are greater than 1, the source must be
an array.

Source

Variable

The name of the Variable to sample.

DataType

A code to select the data storage format.

Constant

Alpha Code

Numeric Code

Data Format

IEEE4

24

IEEE 4 byte floating point

FP2

7

Campbell Scientific 2 byte floating point

StdDev (Reps, Source, DataType, DisableVar)

StdDev calculates the standard deviation of the Source(s) over the output
interval.

δ

( )

/

/

x

x

x

N

N

i

i

i

i N

i

i N

=









=

=

=

=

2

1

2

1

1

2

where

( )

δ

x is the standard deviation of x, and N is the number of samples

Advertising