Overview This example VI demonstrates how to check if an arbitrary waveform is a sinewave.
Description In LabVIEW you are able to find the FFT of a signal and subsequently verify that, if there is only one peak in the signal converted to frequency domain, the waveform must be a sinusoidal. In this example the signal is simulated with an Express VI and analyzed using native LabVIEW APIs that allow to filter and process the signal. Based on the number of peaks found, the program determines if the waveform analyzed is a sine wave.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Download the attached files to your computer
Open the VI "Sine Wave Detector LV2012 NI Verified.vi"
Modify the type of waveform, the frequency and the threshold of the signal
Run the VI
Observe the LED turning on or off after the VI finished running
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**