Peakindex, Peakslopeindex – MTS Multipurpose Elite User Manual
Page 240
Offset - The offset from the modulus line to use in the calculation.
EndIndex - An optional end index that is used to limit the search region. If this parameter is missing, the
last data point in the array is used as the end.
Unit Class
Integer
PeakIndex
The PeakIndex function locates the index of the maximum value in the array.
Returns
The index of the array associated with the maximum value of the array.
Syntax
PeakIndex(channel[, startIndex, endIndex])
Parameters
Channel - The array data used in the function.
StartIndex - The optional starting index of the region to evaluate.
EndIndex - The optional ending index of the region to evaluate.
Unit Class
Integer
PeakSlopeIndex
The PeakSlopeIndex function locates the region of peak slope of the X-Y curve.
Returns
This function returns the start or end index of the region of the peak slope of the X-Y curve.
Syntax
PeakSlopeIndex(markerNumber, y-axis, x-axis, segmentLength[, startIndex, endIndex, tolerance])
Parameters
MarkerNumber - 1 returns the start index; 2 returns the end index.
y-axis - The Y-Axis array data.
x-axis - The X-Axis array data.
SegmentLength - The percentage of the peak Y-Axis used to determine the regions used in the slope
calculations.
StartIndex - The optional start index of the region. If this parameter is missing, the start is associated with
the first data point in the array.
240 | MTS TestSuite
Working with Variables