LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real Time Spectral Measurements for Data Collected through Serial Port

Hello everybody

 

Im sending a sine wave from a function generator to an arduino, and from the arduino im using this VI (serial_arduino3) to read the digitized sine wave (serial data) from the serial port (COM4). I managed to display the sine wave from the function generator to a waveform chart in real time (No_FFT.bmp), however Im unable to find the power spectrum of the signal in. Im think the problem is coming from my incorrect use of the 'spectral measurements' box. How can I rectify this mistake and obtain power spectrum of the signal in real time?

 

Thanks!

 

ps: There are some limitations I faced when aquiring a sine wave using Labview + arduino. There are discontinuities on the sine wave but thats an arduino issue.. The discussion on the arduino forum is here: http://arduino.cc/forum/index.php?action=profile;u=39206;sa=showPosts

Download All
0 Kudos
Message 1 of 3
(3,012 Views)

Hello 

Try the Vi below. To control your power spectrum settings go to the block diagram and double click on the "spectral measurements" box so you can select the options you want. Is that what you need?

Fred

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

Thanks fredericb. I noticed I have to use shift registers and save the data into arrays before I can use the power spectrum express VI.

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