LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring min and max values from continuous data values

Hi,

I am relatively new to LabVIEW but am not sure how to acquire minimum and maximum values from a constantly changing data value.

The value changes continuously and I need to be able to log the minimum and maximum values that have been displayed during a period of time.

As I understand, the single data value needs to be inputted into a waveform, which can then be analysed as a graph. However I'm not sure how to do this!

If anyone has a relevant VI, I would be extremely grateful.

With many thanks
0 Kudos
Message 1 of 5
(3,056 Views)
a simple way to do this is to constant compare the present value with the low value and the high value.

if the current value is lower than the the min value, then the min value is changed to the current value.

Same for the max value.

Just initialize the min value with +infinity and the max value with -infinity.
Message 2 of 5
(3,056 Views)
should read "constantly compare"
0 Kudos
Message 3 of 5
(3,056 Views)
Here's a simple lv 6i example
0 Kudos
Message 4 of 5
(3,056 Views)
many thanks - exactly what i need.
0 Kudos
Message 5 of 5
(3,056 Views)