LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Smoothing


MrLearners wrote:

This is the screenshot of the graph block diagram.


So where do you still have problems? The filtered data you show in the small snippet looks fine and there is no inversion. In fact simulating your graph using the unfiltered data ptbypt in a loop gives about the same result. (see attached)

 

 

0 Kudos
Message 11 of 20
(2,001 Views)

In fact, all you need is a chart as follows:

 

 

Download All
0 Kudos
Message 12 of 20
(1,999 Views)

Hi Altenbach,

 

I am not sure why I am having this problem. You see in this image, the value is not even close. Is it normal, or perhaps this filter dosen't work for me?

graph.png

0 Kudos
Message 13 of 20
(1,983 Views)

What do you get if you run the VI that I have attached above?

0 Kudos
Message 14 of 20
(1,961 Views)

Hi Altenbach,

 

I used your method in my code and run it. The image is what I get, in the graph there is only 6 pts. In the data I attached previously, there is 52 pts. The filtered data and unfiltered data differ alot.

0 Kudos
Message 15 of 20
(1,948 Views)

You only show 6 points, not 52. You still did not tell me if you get a reasonable result by running my example with the default data that is already in it. I am trying to figure out if the algorithm or defaults have changed.

 

Would it be possible to attach the actual data (52 pts) that you think does not work well.

0 Kudos
Message 16 of 20
(1,931 Views)

Hi Altenbach,


graph.png

 

0 Kudos
Message 17 of 20
(1,924 Views)

 

 

Im not a filter expert but I have gotten very satisfactory results in the past using the median pt by pt filter

(using a rank of 2 or 3.)

 

This usually maintains the original shape of the curve without too much data loss.

 

 

 

0 Kudos
Message 18 of 20
(1,918 Views)

What is a "pt value"?

 

A point-by-point approach typically always lags a little bit, because it only has one-sided information and cannot predict points that haven't been measured yet.

0 Kudos
Message 19 of 20
(1,908 Views)

Hi Altenbach,

 

Here is more data,

More data.png

graph.png

0 Kudos
Message 20 of 20
(1,898 Views)