beautypg.com

Samplefieldcal, Rainflow parameters – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 215

background image

Section 6. Data Table Declarations and Output Processing Instructions

Parameter
& Data Type

Enter

RAINFLOW PARAMETERS

Source
Variable

The variable that is tested to determine which bin is selected

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

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 histogram. The

histogram that is eventually stored includes the inputs that occurred while the disable variable was 0. The
Disable variable can be used to remove NANs from the results of the histogram (use "Source = NAN"
for the DisableVar expression). Special use case: Set equal to 12345 and the histogram will reset
after it outputs. Set equal to -12345 and the histogram will reset immediately.

Expression

Value Result

0

Process current input

≠ 0

Do not process current input

MeanBins

Constant

The number of bins or subranges to sort the mean value of the signal during a stress strain cycle into.
Enter 1 to disregard the signal value and only sort by the amplitude of the signal. The width of each
subrange is equal to the HiLimit - LowLimit divided by the number of bins. The lowest bin’s minimum
value is the low limit and the highest bin’s maximum value is the High limit

AmpBins

Constant

The number of bins or subranges to sort the amplitude of a stress strain cycle into. The width of each
subrange is equal to the HiLimit - LowLimit divided by the number of bins.

LowLim

Constant

Enter the lowest input signal anticipated. Used for the floor of the lowest Mean Range. The difference
between the LowLimit and UpLimit is divided by the # of Amp Bins to get the Amp Bin ranges.

UpperLim

Constant

Enter the highest input signal anticipated. Used for the ceiling of the highest Mean Range. The
difference between the LowLimit and UpLimit is divided by the # of Amp Bins to get the Amp Bin
ranges.

MinAmp

Constant

The minimum amplitude that a stress strain cycle must have to be counted.

Form

The Form code is 3 digits - ABC

Constant

Code Form

A = 0

Reset histogram after each output.

A = 1

Do not reset histogram.

B = 0

Divide bins by total count.

B = 1

Output total in each bin.

C = 0

Open form. Include outside range values in end bins.

C = 1

Closed form. Exclude values outside range.

101 means: Do not reset. Divide bins by total count. Closed form.

SampleFieldCal

This instruction stores the most recent value(s) in the FieldCal file to a data
table. Normally, the NewFieldCal function is used as the trigger in the
DataTable instruction to trigger the Table output when a new FieldCal function
has been performed. See the FieldCal in Section 9.2 Datalogger
Status/Control
for program example.

6-31