rainflow

Reduces the number of vector points from the test data without losing the damage, magnitude, and/or effect of the test data.

Syntax

rainflow(yvect, numbins, minrange, maxrange, output, gate, debug)

Arguments

yvect
Time vector. Vector of the data to be analyzed.
numbins
Total number of bins specified. The total number of bins is always two more than the value set in the number of bins.
minrange
Minimum value a bin can have for its range of real time data.
maxrange
Maximum value a bin can have for its range of real time data.
output (0/1/2/3/4)
Used to determine the vector return type.
  • 0 = X
  • 1 = Y
  • 2 = Z range/mean matrix
  • 3 = Sum across range
  • 4 = Sum across mean
gate
Hysteresis slope reversal control and also used to remove points due to external noise. The default value is 0 (disabled). Currently unsupported. Set to 0 if required to include the debug flag.
debug
Flag to turn on the debug mode (prints to the Message Log).
Optional argument (default = off; for legacy support).
Note: The preferred method to obtain debug information from rainflow is to use the “HW_RAINFLOW_DEBUG” environment variable.
Using this environment variable causes rainflow to write out the debug.csv file to the current working directory.

Example

X = rainflow(p1w1c1.y, 19, -2125, 5000, 0, 0)
Y = rainflow(p1w1c1.y, 19, -2125, 5000, 1, 0)
Z = rainflow(p1w1c1.y, 19, -2125, 5000, 2, 0)

Comments

N/A