08-11-2012 04:20 AM
Hi all,
I would like to know how can I smooth this graph?
08-11-2012 05:01 AM
Hi Learners,
Here are some options:-
You will need to convert your data from XY to waveform to get any of these to work. If your data are evenly spaced, this is pretty easy. If they are not, you will need to do some sort of interpolation. Or you can simply ignore the fact that you have unevenly sampled data, convert to a waveform, smooth, then convert back.
But you have'nt provided much more details or not even attached your VI.
Anyway Hope this Helps
08-11-2012 06:17 AM
Hi Danil,
Thanks for your reply.
This graph is plotted at real time point by point.
How do I know that my data are evenly spaced?
Sorry I am not allowed to enclose the VI. Here is a picture.
Is it possible to smoth the graph at real time when it is plotting or must I wait for the graph to complete plotting? Thanks!!!
08-11-2012 09:23 AM
You don't show where the blue wire is coming from, but chances are that it is connected the the iteration terminal. This means that the samples are equally spaced in x. You don't even need an xy graph in this case, a simple chart would suffice.
Since your data arrives one point at a time, you need a ptbypt smoothing version. Look it the "point by point" filters palette.
08-11-2012 10:54 AM - edited 08-11-2012 10:57 AM
Hi Altenbach,
The blue line can be said to be coming from from the iteration. It is the iteration multiply by the value in control.The Vi is set to stop at 255.
e.g control value = 1, I will have 256 pts.
I have some question please bear with me.
.
Using this ptbypt, can I smooth the point at real time?
May I know do I still need to convert my data from XY graph to waveform?
Is it possible for you to name me the ptbypt filters that you think is most suitable for my graph, perhaps Savitzky-Golay? Thanks!
08-12-2012 09:32 AM - edited 08-12-2012 09:36 AM
Hi Altenbach,
Do you mean that I can connect my Y data to a waveform graph?
08-14-2012 09:18 AM - edited 08-14-2012 09:19 AM
Hi all,
Please help me.I am using Savitzky Golay Filter PtByPt Vi. The orignal data and filter data differ alot. My curve is inverted.
08-14-2012 06:55 PM
There are several parameters which can be set on the Savitsky Golay filter and they can have a significnat effect on the result.
Please post your latest VI along with some typical data.
Lynn
08-14-2012 08:31 PM
Hi Johnsold,
This is the snippet of my program and the other vi contain some example data.
I am unable to upload the driver and my subvi. Can you look at my program without it? I used all default setting on Savitsky Golay filter.
08-14-2012 08:45 PM - edited 08-14-2012 08:55 PM
Hi Johnsold,
This is the screenshot of the graph block diagram.