Testrunnumber, Valleyindex – MTS Multipurpose Elite User Manual
Page 241
EndIndex - The optional end index of the region. If this parameter is missing, the end is associated with
the end of the array data.
Tolerance - The percentage of the slope used to optimize the maximum slope region. The region can be
optimized by reducing the region and rechecking the slope. The optimization step will be terminated if the
new slope is outside of the tolerance band of the original peak slope. If this parameter is missing, no
additional optimization is used beyond locating the maximum region.
Unit Class
Integer
TestRunNumber
Description
The TestRunNumber function returns the current test run number.
Returns
Returns a 1-based number representing the placement of the Test Run in the list of Test Runs.
Syntax
TestRunNumber()
Unit Class
Integer
ValleyIndex
The ValleyIndex function locates the index of the minimum value in the array.
Returns
The index of the array associated with the minimum value of the array.
Syntax
ValleyIndex(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
Example
Given a force array whose minimum value is located at index 100 in the array, this function returns 100.
MTS TestSuite | 241
Working with Variables