LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export 1st; 2nd; 3rd; up to 11th harmonic from LabVIEW graph to excel

Solved!
Go to solution

Hi,

 

How do I export from 1st, 2nd, 3rd, 4th, 5th, up to 11th harmonics without exporting the other harmonics in between?  

 

fezeka724_0-1686138320060.png

 

Thanks in advance.

 

0 Kudos
Message 1 of 4
(868 Views)

You do some filtering on the FFT data and write only those filtered data to the file.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(848 Views)

You show a picture of a plot that has peaks.  It is not clear what the real "data" are -- it might be a plot of an FFT of some waveform, but we'd need to see the LabVIEW code (a file with the extension .vi showing LabVIEW code, editable and runnable, not pictures of Block Diagrams, please) to understand what you want to do.

 

You should also clarify what you mean by "Export ... graph to Excel".  Your plot appears to cover the frequency spectrum from the first to 11th harmonics, though plotting with linear axes makes it difficult to see things clearly.  Have you explored changing the X and/or the Y Axes to logarithmic?

 

Please attach your code.  Since you are a New Member, you are probably using LabVIEW 2023 Q1, which many "long-time LabVIEW users" (myself, included) have not installed.  Before attaching your code, "Save for Previous Version" and choose LabVIEW 2021 or LabVIEW 2019.

 

Bob Schor

Message 3 of 4
(836 Views)
Solution
Accepted by topic author fezeka724

If you know the base frequency (probably around 50Hz here), you know the exact location of all harmonics and it seem trivial to index them out and e.g. place them in a table with two columns (frequency & magnitude) that you can write to a tab delimited file that excel can read. You can even create a real excel file with slightly more effort.

 

Once you attach your VI containing some typical data, we can show you how. It gets a bit more tricky in the presence of spectral leakage and such.

Message 4 of 4
(813 Views)