LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply Analysis lib. FFT function on a wfm captured from NIScope?

I have captured a sine wave from NI Scope in arrayX (time samples) and arrayY (voltage samples). I need to apply FFT function of Labwindows Analysis library on that captured wfm. But this FFT function parameters needs to be real[ ] and Imaginary[ ] (Polar coord) it seems. I dont know how to my wfm waveform sample in this function.

 

After applying FFT, I have to plot the resultant waveform also in the plot. Any code snippet or suggestion is highly appreciated

 

 

0 Kudos
Message 1 of 2
(3,331 Views)

Just put all the imaginary values to 0.0 and see if that works OK for you.

 

JR

0 Kudos
Message 2 of 2
(3,329 Views)