05-15-2013 05:49 PM
Hi guys, i am doing fft for three signals at the same time to see their frequescy domains. here is the problem i met: i have to do fft for each signal seperately, which means i have to put the same fft for another two signals, so i was wondering, is there anyway to fasten the computation by using only one fft for the three signals? I have tried build an array that contains the three signals and then wire this array to fft then I should be able to get three signals frequency domain. But in fact, it didn't work. There is a problem saying that "wiring with two different types data". is this because that fft cannot be computing for array data? or anyone can come up some idea to make the code looks nicer? thanks
05-15-2013 07:48 PM
You can create an array of waveforms, put all the common code such as the FFT, bundle/unbundle waveforms inside a For Loop, and auto-index the tunnels of the waveform arrays at the For Loop.
05-16-2013 05:13 PM
hi, i have updated this code, is this corrent? i only test for one signal, seems correct.
05-17-2013 09:07 AM
That looks like what I was thinking of.
Nice work.