Overview
This VI demonstrates Fourier Series, by graphing the Fourier Series Approximation of a Square Wave. The equations used to calculate the Fourier Series were prederived.
Description
Fourier Series is a technique for decomposing any periodic signal into an infinite sum of sinusoids and a constant. The sinusoids and constant are scaled by the Fourier Coefficients. The exact equations for Fourier Series and Fourier Coefficients can be found on Wikipedia.
Fourier Series Approximation is the reduction the infinite sum of sinusoids to a limited number, specified by the number of harmonics. By increasing the number of harmonics summed, the approximation becomes more similar to original periodic signal.
Requirements
Software:
- LabVIEW 2012
Steps to Implement or Execute Code
- Download and extract FourierSeriesEampleProject.zip
- Open up FourierSeriesExampleProject.lvproj
- Open and Run FourierSeriesOfSquareWave.vi
- Increment the Number of Harmonics control
- Observe that the Fourier Series Approximation graph more accurately constructs the Target Waveform as Number of Harmonics is increased.
Additional Information or References
NI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Thomas C.
FlexRIO Product Support Engineer
National Instruments