Totalize (reps, source, datatype, disablevar) – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 218

Advertising
background image

Section 6. Data Table Declarations and Output Processing Instructions

Parameter
& Data Type

Enter

STDDEV PARAMETERS

Reps

Constant

The number of standard deviations to calculate. When repetitions are greater than 1, the source must be
an array.

Source

Variable

The name of the Variable that is the input for the instruction.

DataType

A code to select the data storage format. Read More: See Section 4.2.4.4 Data Types

Constant

Alpha Code

Numeric Code

Data Format

IEEE4

24

IEEE 4 byte floating point

FP2

7

Campbell Scientific 2 byte floating point

UINT2

21

2 Byte unsigned integer

Long

20

4 Byte Integer value

DisableVar

Constant,
Variable, or
Expression

A non-zero value will disable intermediate processing. Normally 0 is entered so all inputs are processed.
For example, when the disable variable is

≠0 the current input is not included in the standard deviation.

The standard deviation that is eventually stored is the standard deviation of the inputs that occurred
while the disable variable was 0.

Value Result

0

Process current input

≠ 0

Do not process current input

Totalize (Reps, Source, DataType, DisableVar)

The Totalize instruction is used to store the total(s) of the values of the
source(s) over the given output interval.

Parameter
& Data Type

Enter

TOTALIZE PARAMETERS

Reps

Constant

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

Source

Variable

The name of the Variable that is the input for the instruction.

DataType

A code to select the data storage format. Read More: See Section 4.2.4.4 Data Types

Constant

Alpha Code

Numeric Code

Data Format

IEEE4

24

IEEE 4 byte floating point

FP2

7

Campbell Scientific 2 byte floating point

UINT2

21

2 Byte unsigned integer

Long

20

4 Byte Integer value

DisableVar

Constant,
Variable, or
Expression

A non-zero value will disable intermediate processing. Normally 0 is entered so all inputs are processed.
For example, when the disable variable is

≠0 the current input is not included in the total. The total that

is eventually stored is the total of the inputs that occurred while the disable variable was 0.

Value Result

0

Process current input

≠ 0

Do not process current input

6-34

Advertising