05-15-2020 02:57 PM
Hi,
I have a power spectrum ( intensity vs wavelength) and I want to calculate corresponding graph in the time domain. I have already done this in MATLAB. But now in LabVIEW I have two issues: 1- the graph in time domain is upside down 2- the FWHM in time domain is 2 orders of magnitude bigger it should be.
Thanks for your help
Solved! Go to Solution.
05-15-2020 03:53 PM
I'm confused. Your CSV file contains data in a spectrum format already. Intensity vs. wavelength. (Or actually the reverse of that since a longer wavelength would mean a lower frequency.)
Then you want to do an FFT on that? So you want the spectrum of a spectrum?
It doesn't make sense.
05-15-2020 03:57 PM - edited 05-15-2020 04:01 PM
He wants to convert his frequency domain data back to time domain, so he needs an inverse FFT.
OP, could you save your VI in 2018 or earlier? I don't have 2019 yet.
Edit: Apparently you can use forward FFT algorithms to do inverse FFT transformations, maybe this is what the OP was going for (still haven't seen the code though): https://www.dsprelated.com/showarticle/800.php
05-15-2020 03:59 PM
Thanks for quick response,
I need to be careful about the word choice. In frequency/wavelength domain we call that spectrum and in the time domain we call the graph the intensity.
So, I have the spectrum ( which is a pulse) in the wavelength/freq domain and I want to obtain the pulse in the time domain which usually is called temporal intensity.
05-15-2020 04:01 PM
Thanks , 2019 is the one our schools offers us to use. I'll see whether I can get that.
05-15-2020 04:02 PM
You can back-save in any older version, just use File-Save for Previous.
05-15-2020 04:06 PM
Thanks much, please find the attached file.
05-15-2020 06:22 PM
@Alias110 wrote:
Hi,
I have a power spectrum ( intensity vs wavelength) and I want to calculate corresponding graph in the time domain. I have already done this in MATLAB. But now in LabVIEW I have two issues: 1- the graph in time domain is upside down 2- the FWHM in time domain is 2 orders of magnitude bigger it should be.
Thanks for your help
I think there are some language issues here.
mcduff
05-15-2020 06:33 PM
Thanks for your comments.
1- about the CSV file, I think maybe you have not seen the whole values. It starts with zeros as I subtracted background but at the middle you can see the non-zero values. So in the tails you have zero but not everywhere.
2- That's exactly what I want to figure out and if you look I have used Complex to r & theta.
3- Thanks for suggestion. I have use FTT, and seperately tried to inverted wavelength into time with another for loop as you can see. But I will try your suggestion (IFFT) and will update the result here.
Thanks again,
05-15-2020 07:21 PM
Something like this:
mcduff