LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data file into spectrum analyzer vi

Does anyone have sample LV code to read a spreadsheet (text) file and
display a frequency spectrum using the spectrum analysis vi ?
0 Kudos
Message 1 of 2
(2,821 Views)
Hi there,

I created a small example for you (see the attached "StreadsheetToPower.vi"). This example creates a sine wave and a square wave and plots the two waves on a Graph. After that the data is saved to the "data.txt" file by using the high level spreadsheet file I/O VIs. We then read the file and extracts the FFT power spectrum from the timed data using the delta time "dt" from the front panel. "dt" is important, since this tells the "FFT Power Spectrum.vi" how the data is related to time.

I hope you find this information useful.

Best regards,
Philip C.
Applications Engineer
National Instruments
I hope you find this information useful.

Best Regards,
Philip C.
Applications Engineer
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Download All
0 Kudos
Message 2 of 2
(2,821 Views)