# LabVIEW

cancel
Showing results for
Search instead for
Did you mean:

## how to find maximum and minimum value for different iterations of while loop

how can I find the minimum value from a XY graph for different iterations of while loop. I have a XY graph , i need to find the minimum value at each operation of the loop. In the way such that I hve to plot a graph with minimum against time. How can I do it please reply

Message 1 of 7
(5,150 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

It seems to me that the same question was asked and answered already.

http://forums.ni.com/t5/LabVIEW/how-can-I-find-the-minimum-in-real-time/m-p/2716891
Message 2 of 7
(5,134 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

Hi perumpadapu,

You might want to look at a function called "Array Max & Min" where you can extract a minimum or maximum value inside an array.

You can also get index information of the array as well.

Best regards,

TuiTui

Message 3 of 7
(5,130 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

it's not the same question, there it is different, here it is different, here i have to start the while loop again and again and I have to see the minima .

Message 4 of 7
(5,126 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

The answer is still the same.
Message 5 of 7
(5,123 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

Hi Perumpadapu,

Do you mean you want to see the minimum value of every loop and retain the information?

If this is the case, you might want to use "build array" and shift register to put the value in each loop into array. However, you might want to consider about the memory if you are using build array.

Concept of shift register can be found in this link below

http://www.ni.com/gettingstarted/labviewbasics/shiftregisters.htm

Hope this help

Best regards,

TuiTui

Message 6 of 7
(5,120 Views)

## Re: how to find maximum and minimum value for different iterations of while loop

You don't need a shft register, just use the Max/Min Array function. In this example, I built ten 500-element arrays, found max & min for each, and put them into a 10-element (x2) array:

Should be easy to adapt for your application.

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
Message 7 of 7
(5,064 Views)