LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spectre fréquence sous labview

bonjour,
je dois définir le spectre d'un signal, pour cela j'ai tenté d'utiliser "FFT Power Spectrum.vi" et "FFT spectrum (Mag-phase).vi".
Dans les 2 cas le résultat graphique que j'obtiens en sortie de ces vi n'est pas correct, la fréquence est en y et ne cesse d'augmenter, au lieu d'être en x et stable.
En entrée de ces vi j'ai créé une waveform avec comme paramètre : 0 à t0, 0,0005 à dt, et un tableau que je remplis en dynamique avec les valeurs acquises par mes voies. Où ai je commis une erreur?
Merci d'avance.
0 Kudos
Message 1 of 4
(2,942 Views)
When you say you fill your time data array dynamically, do you mean the length of the array change?

The reason I am asking is that the behavior you describe is "weird". The only "thing" that can make your Y-values grow is if the energy in each bin grows. This can happen if:
1 - You bin size gets reduced, that is the ratio "Sample Rate / number of points in the array" increases. So your array length is not constant
2 - Your overall signal energy increases. Are you averaging and if yes how?

Please post your data so we can look at them.
0 Kudos
Message 2 of 4
(2,942 Views)
here are my data,
Download All
0 Kudos
Message 3 of 4
(2,942 Views)
As expected from the behavior you described, you are "growing" your array point-by-point by adding a new element at each iteration. Doing this, you are changing the frequency resolution of your spectrum and therefore can not directly compare the result from one iteration to another.

You may consider using the Point-by-point analysis VIs instead. There are located in the Analyze>>Point-by-point palette.
0 Kudos
Message 4 of 4
(2,942 Views)