01-25-2013 09:47 AM
Hello.....
First, let me confess to being a relative noob..... So please be gentle.
I am trying to create a vi to analyse an optical spectrum of the form: Intensity vs. Wavelength. This vi would need to do the following:
1: Read the input data file.
2: Set a noise floor, below which all data will be ignored.
3: Scan the spectrum and identify the amplitude, width, and center of any peaks that are above the noise floor. There will be multiple peaks present (as many as thirty or so).
5: Fit a gaussian to each peak.
6: Sum the gaussians and create a new data file from this sum.
So..... I know what I want to do, just not the best way to do it. Is there a vi already in labview that will do this for me? The Gaussian fit vi seems only really useful if you want to fit a curve to a single peak. If I need to build this from the ground up, which is fine since I need the practice anyway, what would be the best way to start?
Thanks in advance for any help.
nia
01-25-2013 01:54 PM
Still looking....
01-29-2013
12:34 PM
- last edited on
04-26-2025
09:16 PM
by
Content Cleaner
Hello Nia,
There are many ways to approach this problem. By chance, do you have access to the sound and vibration toolkit for labVIEW (https://www.ni.com/en-us/shop/product/labview-sound-and-vibration-toolkit.html)? That toolkit will make performing the signal processing tools which will make creating this VI much easier. The following links may also be helpful for getting started with your issue
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/programming/file-mnu.html
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/signal-processing/dir-mnu...
https://forums.ni.com/t5/Example-Code/Displaying-the-Frequency-Values-of-the-FFT-peaks-processed-by/...
https://forums.ni.com/t5/Example-Code/Spectral-Measurements-on-IQ-Recorded-Signal/ta-p/3502921
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/analysis/6fits-llb/gaussian-peak-fi...
Thanks
Doug W
Applications Engineer