Averagevalleys, Averagevalue – MTS Multipurpose Elite User Manual
Page 265
![background image](/manuals/568053/265/background.png)
Unit Class
Same as the array data.
Example
AveragePeaks(_Load, LoadPeakCriteria, 0, SizeOfArray(_Load)-1)
This formula:
1. Searches the _Load channel.
2. Looks for drops in the value of _Load channel that correspond to the input LoadPeakCriteria.
3. Searches between the first data point and the last data point.
AverageValleys
The AverageValleys function returns the average of all the valleys determined using the peak criteria.
Returns
The average valley calculated.
Syntax
AverageValleys(VarArray, valleyCriterion[, startIndex, endIndex, numberOfValleys, threshold])
Parameters
VarArray - The array data being analyzed.
ValleyCriterion - The percentage of change from the valley that identifies the valley.
StartIndex - The optional starting index of the region to analyze.
EndIndex - The optional ending index of the region to analyze.
NumberOfValleys - The optional maximum number of valleys to identify.
Threshold - The optional threshold that has to be exceeded to start looking for valleys.
Unit Class
Same unit as the array.
Example
AverageValleys(_Load, LoadMinValleyCriteria)
This formula:
1. Searches the _Load channel.
2. Looks for increases in the value of _Load channel that correspond to the input LoadMinValleyCriteria.
AverageValue
The AverageValue function returns the average array value over a specified region.
MTS TestSuite | 265
Working with Variables