From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save FFT magnitude data

Solved!
Go to solution

In my lab, I use .dat file form.

I want to save FFT Magnitude data with using 'Write Delimited Spreadsheet.vi' so I have to change cluster(3 elements) data to 2D array data.

Is there anything good to get 2D array data?

 

캡처.PNG

0 Kudos
Message 1 of 2
(1,902 Views)
Solution
Accepted by topic author Esther97

The FFT cluster consists of a f0 (starting frequency, probably always zero) a dF (distance delta Frequency) and a 1-D array of the frequency bins.  Use an Unbundle by Name rather than that ordinary unbundle and you'll see.  It is very similar to the Waveform datatype.

 

I assume by 2D array you mean a n array with a column of frequencies, and a column of amplitudes corresponding to each frequency.  Just use the f0, dF, and size of the 1-D array to build an array of frequency values with a ramp function, and build that onto the 1D array!

0 Kudos
Message 2 of 2
(1,866 Views)