Hi,
There are a couple of functions in Measurement Studio that you can use. The CWArray contains a method that you can use to get the min and max of an array. Here is a piece of code take from the help file:
Sub MinArray_Example()
'Find the minimum value in the array
Dim a (0 to 4, 0 to 5) as Double
Dim j,k as Variant
Dim result as Variant
For j=0 to 4
For k=0 to 5
a(j,k) = j*k
Next k
Next j
result = CWArray1.MinArray(a) 'result = 0
End Sub
Almost the same code works for MaxArray; I hope this helps you get started.
Regards,
Juan Carlos
N.I.