LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Please! I need a solution to read the running max-min

I am a starter and not too good in labview. I need to read the running max-min as the random numbers are generated in the loop. iam not getting it right. I have attached the VI. Can anybody please help me making it right???
Please Please Please!!
Thanks
CL
0 Kudos
Message 1 of 3
(2,628 Views)
Your code was somewhat confusing, it was hard to tell what was going on since the upper and lower kept flip-flopping (try to keep mins and max's seperate).  This is *almost* the same code you submitted, just cleaned up a bit more.  Remember that you want to initialize to the first value that comes out of the random number generator, since that will give you a real minimum since the generator may never reach the initialized minimum that you set (which in your case was zero, I doubt the generator will ever return true zero).
 
-Danny
 

Message Edited by texasdiaz on 09-26-2005 02:44 PM

0 Kudos
Message 2 of 3
(2,613 Views)
I think this is more what you're looking for. It creates an array of numbers and appends a new element with each iteration. The Array Max and Min is then used.
Message 3 of 3
(2,609 Views)