Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving FFT PSD waveform to TDMS file maintaining x-axis scale

Solved!
Go to solution

Hi all,

 

I'm having trouble saving a Power Spectral Density waveform to a TDMS file because the method I'm using is losing the x-axis (frequency) scaling. The only way I can get it to save is extracting the magnitude from the waveform and saving that in the TDMS file. This loses all the frequency information.

Does anyone know how I can save the PSD information in a TDMS file or failing that, any type of file?

 

Thank you,

Donners
0 Kudos
Message 1 of 5
(6,962 Views)

Hi,

I've downloaded and took a look at the "Data Calculations TDMS 4.vi", however I'm not sure which part in the VI you have problem with. Would you please offer more informatin?

0 Kudos
Message 2 of 5
(6,946 Views)

Hi deppSu,

 

If you look at the jpeg of the front panel, the frequency of the 'Power Spectral Density 2' graph, you can see that the frequency component is centred around 12 Hz instead of 0.4 Hz where it should be. This is what is being saved in the TDMS file and it's incorrect.

 

Thank you,

 

Donners
0 Kudos
Message 3 of 5
(6,938 Views)
Solution
Accepted by Donners

Hi,

As my understanding, you are trying to log the PSD to "Power Spectral Density" channel, but you do it wrong with double array. TDMS write don't accept cluster as input, but accept waveform.  I have updated the VI and the PSD in TDMS file viewed as PSD Channel on TDMS File Viewer

Message 4 of 5
(6,918 Views)

Thank you zaizhou,

 

You have no idea how long I've been trying to work this problem out.

 

Donners
0 Kudos
Message 5 of 5
(6,907 Views)