I realize this topic is quite old but it fairly close to what I am attempting to do right now.
I am trying to use the Savitzky Golay smoothing to read in a set of X(time) and Y (analog voltage) values and smooth out the noise a little bit and give me the first derivative. I have gone through the program and understand the basics of what it is trying to do in exception the nitty gritty of the numerical method.
Basically I want to be able to display the smoothed Y and smoothed dY/dx on the fly. I don't think the downloadable files allow this sort of thing without some modifications. Basically what I tried (and what I want some feedback on) is I took out the Buffer Function seperatly as well as the Orthogonal Smooth.
The Buffer function will put the values into the specified window as values are put in continuously, and feeds it to the orthogonal smooth which will smooth the values over the window. Am I able just to Index the last value of each of the smoothed arrays to get a values I can display on a chart (or a digital readout which I would like as well).
For the Chart I would like to put the Smoothed Y and Raw Y on the same plot. To do this I have tried putting the x and y data into an cluster and then put an array of clusters into the plot but it doesn't seem to want to display anything other then the Raw data.
Any help would be great,
Thanks!
Mac