Owning Palette: Filters VIs
Requires: Full Development System
Filters the input data sequence X using a Savitzky-Golay FIR smoothing filter. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
X is the input array of samples to filter. | |
side points specifies the number of data points to each side of the current data point to use for the least squares minimization. side points*2 + 1 is the length of the moving window, which must be greater than the polynomial order. | |
polynomial order specifies the order of the polynomial. | |
Weight specifies a weighting vector to use in the least squares minimization. This array must be empty or have a length of side points*2+1. | |
Filtered X is the output array of filtered samples. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
X is the input array of samples to filter. | |
side points specifies the number of data points to each side of the current data point to use for the least squares minimization. side points*2 + 1 is the length of the moving window, which must be greater than the polynomial order. | |
polynomial order specifies the order of the polynomial. | |
Weight specifies a weighting vector to use in the least squares minimization. This array must be empty or have a length of side points*2+1. | |
Filtered X is the output array of filtered samples. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The Savitzky-Golay filter smoothes a noisy signal by the piece-by-piece fitting of a polynomial function to the signal. The VI performs the fitting by least squares minimization. Refer to the Savitzky-Golay Filter Coefficients VI for a detailed description of how LabVIEW applies a Savitzky-Golay filter to a signal.
Refer to the Savitzky-Golay Filtering VI in the labview\examples\Signal Processing\Filters directory for an example of using the Savitzky-Golay Filter VI.