08-29-2013 11:08 AM
Hi,
I'm using the ocean optics s2000 to acquire some spectra. What I'm trying to do now is to integrate the spectrum between two wavelengths, but don't know how to. The sampling frequency is 1MHz and thus the spectrum is constantly refreshed (I guess). I'm trying to get the instantaneous integral result between to wavelength, e.g.. 600 nm and 650 nm in the figure below. Any suggestions?
Thanks!
Solved! Go to Solution.
08-29-2013 02:50 PM
I might be oversimplifying this (sorry if I am misunderstanding the question), but you should be able to get a subset of the spectrum array (index 600 = freq0+ i*dfreq, solve for i) then sum the sub array.
08-29-2013 03:24 PM
Hi falkpl,
Thanks for your reply. I'm not sure whether your way will work, as I have little experience with labview. But one thing with the program is that the sampling wavelength is not even spaced. For example, the spectra are sampled at wavelength 600.7078, 601.0434, 601.3789, 601.7144..., and the interval between them is 0.33557, 0.33553, 0.33549..., not fixed as shown below. So I don't think I can add the corresponding amplitude array directly.
08-29-2013 03:46 PM - edited 08-29-2013 03:53 PM
You can use the 'Uneven Integration' VI. This from a programming standpoint.
From a physical standpoint it might be more difficult. Each of your data samples is probably convolved with the spectral characteristics of a filter or monochromator that has to be taken into account.
Cheers
Edgar
08-29-2013 03:52 PM - edited 08-29-2013 03:56 PM
Well, for a C-T monochromator (disperser here, actually), the wavelength differences between pixels of the detector are probably close enough to be approximated as equal over your 50 nm range (they only differ by 0.01% for adjacent pixels, and you're only talking about 150 pixels here), but if you want to be as exact as possible, you would want to sum the products (difference in wavelength of adjacent pixels * amplitude of signal) for each pixel over the wavelength range of interest.
EDIT: Or do what ejkaiser said.
Cameron
08-29-2013 03:59 PM
Thanks. I'm trying uneven integration and should come back later to tell whether I worked it out.
08-29-2013 04:26 PM
Just tried in the lab computer and it works, Thanks a lot, guys.