LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VERY urgent, Plotting light spectrum

Solved!
Go to solution

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 25
(1,795 Views)

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 🙂

0 Kudos
Message 12 of 25
(1,774 Views)

Hi arabic,

 

here's the schematics for plotting your curves:

check.png

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 25
(1,759 Views)

thanks so much but what about the additive spectrum of 4 the colors? how to do that

0 Kudos
Message 14 of 25
(1,754 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 25
(1,751 Views)

im sorry to trouble you much, but how to fit gausian curve. im a beginner to labview can you give me hints?

0 Kudos
Message 16 of 25
(1,759 Views)

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!!!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 17 of 25
(1,755 Views)

0 Kudos
Message 18 of 25
(1,748 Views)

Hi arabic,

 

why should I send you a VI, that still gives an error??? 🙂

 

Rather you should attach your VI and explain which error you receive!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 25
(1,744 Views)

im not sure what is the thing before the xy graph, this is why i get disconnected wire.

0 Kudos
Message 20 of 25
(1,736 Views)