LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Min and Max

Solved!
Go to solution

Hi All,

I am trying to display a "running min and max" number from 100 randomly generated numbers between 0 to 1. My VI will display the min and max at the end of the 100 iterations, but I cant figure out how to get it to display min and max while running.

 

Any help is appreciated, my VI is attached.

Thanks!

0 Kudos
Message 1 of 4
(2,796 Views)
Solution
Accepted by topic author josrya

You can use the Max/Min function on the Comparison pallete, and bring the max/min indicators inside the loop.  You will need to use 2 shift registers for the previous max and min values.

0 Kudos
Message 2 of 4
(2,792 Views)
Solution
Accepted by topic author josrya

Hi josrya,

 

or use Pt-By-Pt-ArrayMinMax in the loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(2,767 Views)

Thanks for the help!

0 Kudos
Message 4 of 4
(2,711 Views)