beautypg.com

Nextpeak – MTS Multipurpose Elite User Manual

Page 268

background image

endIndex - The optional end index of the region. The search ends at the last data point if this parameter
is missing.

Threshold - The optional threshold that must be exceeded before searching for peaks.

Unit Class

Same as the array data.

Example

AveragePeaks(_Load, LoadPeakCriteria, 0, SizeOfArray(_Load) - 1, MinimumLoad)

This formula:

1. Searches the _Load channel.

2. Looks for drops in the value of _Load channel that correspond to the input LoadPeakCriteria.

3. Determines the median of all of the peaks.

4. Calculates the result only if the _Load channel becomes greater than the value of the input MinimumLoad.

NextPeak

The NextPeak function searches the data array specified in array and returns the next peak’s index, as
defined by the peak criteria, after the data point specified by the start index. The values in square braces,
[ ], are optional.

Syntax

NextPeak(array, peakCriteria, startIndex[, endIndex, threshold]))

Parameters

array - The array data being analyzed for the next peak.

peakCriteria - A percentage of the peak magnitude used to detect when a peak occurs.

startIndex - The start index of the array used in locating the peak. The first point in the array is used if this
parameter is not provided.

endIndex - The optional end index of the array used in locating the peak. The last point in the array is
used if this parameter is not provided.

threshold - The optional minimum value, in array units, which must be exceeded before the data is used
in the calculation.

Dimension

Count

Example

NextPeak(_LoadArray, LoadPeakCriteria, Peak, SizeOfArray(_LoadArray)-1, MinimumLoad)

This formula:

1. Searches the _LoadArray data.
2. Looks for the next drop in the _LoadArray data's value that corresponds to the input LoadPeakCriteria.

268 | MTS TestSuite

Working with Variables