NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Donners
Posts: 34
0 Kudos
Accepted Solution

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

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
Member
deppSu
Posts: 116
0 Kudos

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

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?

Member
Donners
Posts: 34
0 Kudos

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

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
Member
zaizhou.ma
Posts: 29

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

[ Edited ]

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

Member
Donners
Posts: 34
0 Kudos

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

Thank you zaizhou,

 

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

 

Donners
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page