Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Savitzky-Golay Filter VI

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

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.

Details  Example

Use the pull-down menu to select an instance of this VI.

Savitzky-Golay Filter (DBL)

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.

Savitzky-Golay Filter (CDB)

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.

Savitzky-Golay Filter Details

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.

Example

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.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit