LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I get a max and/or minimum value to hold while running a .vi

I am collecting load cell data for a cyclic loading test and I would like to have a display of the maximum value for the cycle. I can not get the max value to display for longer than a few seconds before it changes to often a lower value. I would like this value to hold. The data type is dynamic if that helps.
0 Kudos
Message 1 of 5
(4,197 Views)

Here is an example of how to implement max hold:



Message Edited by tbob on 03-07-2008 04:06 PM
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 5
(4,193 Views)
One small correction for the general case:
 
Initialize the shift register with "-Inf " for the maximum (and "+Inf" for minimum, resp.) so you get reasonable results under all conditions.
 
(The above code works fine for the "dice", but would be stuck at zero instead of the maximum if all data is negative, for example.)
0 Kudos
Message 3 of 5
(4,179 Views)
Altenbach, you are a perfectionist.   Smiley Wink
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 5
(4,176 Views)
Thanks a ton!!
0 Kudos
Message 5 of 5
(4,171 Views)