LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

higher efficiency with fft computation

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    

0 Kudos
Message 1 of 4
(2,274 Views)

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.

0 Kudos
Message 2 of 4
(2,267 Views)

hi, i have updated this code, is this corrent? i only test for one signal, seems correct. 

0 Kudos
Message 3 of 4
(2,246 Views)

That looks like what I was thinking of.

 

Nice work.

0 Kudos
Message 4 of 4
(2,224 Views)