LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add an 'Average line' to a curve

I have completed a data acquisition project (LV7.1) for running latency tests on some older devices we have. The project works great but some of the equipment are displaying a problem that I would like to create a work around for. The latency test is to determine the time it takes the equipment to respond to a a control input. There is indeed movement in the response signal but trying to determine when the movement starts is problematic because of the poor signal being captured from the device.

I have attached a bmp which shows part of a report plot for an actual return signal. What I would like to have LabView do is to introduce an 'averaging line' through the curve (I have hand drawn it in on the attachment) when a switch is selected by the user. This would at least allow us to determine if the timings themselves are within the test tolerance while we try to track and correct the source of the bad signal.

I have tried all kinds of experiments with the 'best fit' vi but I can't get the result I want. Maybe someone can give me a pointer to head me in the right direction.

Thanks

HR

0 Kudos
Message 1 of 5
(2,955 Views)
If you have the signal processing toolset, here is the results of the trend.vi in 7.0 format.
Download All
0 Kudos
Message 2 of 5
(2,947 Views)
0 Kudos
Message 3 of 5
(2,934 Views)

Thanks Uncle - I am now experimenting with median filters. Your signal processing trend jpg shows exactly what I am looking for. I am using LV 7.1 instead of 7.0 and therefore I cannot fully open your vi. Do you know what the toolset you mention is referenced as in 7.1 ?

HR

0 Kudos
Message 4 of 5
(2,889 Views)
The signal processing toolkit was included in my professional control edition package.
 
0 Kudos
Message 5 of 5
(2,880 Views)