02-14-2013 01:59 AM - edited 02-14-2013 02:00 AM
Hi arabic,
your "uahx.." picture shows a simple graph with 5 plots. Either use a XY graph or the more simple waveform graph to get such plots...
Provide a data set for those 5 plots (Y values (intensity) vs. X values (wavelength)) and you will receive a nice looking VI in some minutes...
02-14-2013 06:00 PM
hi again
the excel sheet has the points, y axis is the intensity and x axis is the wavelength.
can you please make each plot colored with its color and i also want the the result of adding these 4 gaussians.
thanks alot i really appreciate it 🙂
02-15-2013 02:10 AM - edited 02-15-2013 02:11 AM
Hi arabic,
here's the schematics for plotting your curves:
I converted your Excel file to a more simple CSV-formatted text file (see attachment, rename to *.csv after downloading). (Edit: Sorry, but I'm using German local settings, hence the comma is used as decimal separator in the CSV file.)
Your task is to include some fitting of your data points to gaussian curves. Well, there's a own palette of fitting functions...
02-15-2013 02:17 AM
thanks so much but what about the additive spectrum of 4 the colors? how to do that
02-15-2013 02:23 AM
Hi arabic,
right now it's not as easy as you don't have the same x values in each plot.
Once you have fitted your points to gaussion curves (with the same x range of 400...700nm) you can simply add their y values to get the resulting overall intensity...
02-15-2013 02:26 AM
im sorry to trouble you much, but how to fit gausian curve. im a beginner to labview can you give me hints?
02-15-2013 02:31 AM - edited 02-15-2013 02:32 AM
Hi arabic,
go to mathematics -> Fitting functions palette. There you will find the "Gaussian Peak fit" VI.
Well, NI provides a comprehensive help for that function and they even provide an example demonstrating that function! That example is also linked in the help!!!
02-15-2013 03:40 AM
GerdW, do you mind if you send me the VI? it still gives error
02-15-2013 03:59 AM
02-15-2013 08:16 AM
im not sure what is the thing before the xy graph, this is why i get disconnected wire.