LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

STFT Spectrogram - 50% Overlap

Solved!
Go to solution

Hello everybody...

 

I have a array with 1024 points and from it I've created a waveform with DT 0.1.

I need to perform a STFT Spectrogram analysis using overlapped segments of 512 points.

 

Segment number ONE will go from point 0 until point 512

Segment TWO will go from point 256 until point 768

Segment THREE will go from point 512 until 1024

 

I don't know how to set up the STFT Spectrogram VI to obtain this kind of analysis. Example file it is attached.

 

Thanks in advance for any kind of help.

 

 Dan07

0 Kudos
Message 1 of 36
(6,564 Views)
hello Dan,

i have made some modifications to make your vi little bit more flexible,
 so you can define other windows sizes and overlap .
i place a log fct just to compress data and make them more visible when displayed.

i let your data to waveform but i don't think there is an interest , it's up to you...
window size is defined by bitsize so if you want 512 type 9 same with oversize

time block is just here to let you see the stages...

@+

Tinnitus
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Download All
Message 2 of 36
(6,531 Views)

Hello

My Labview version it's older than yours. Please save to 8.5.

 

Thanks

 

Dan07 

0 Kudos
Message 3 of 36
(6,517 Views)

 

my post is upside down,  i don't why (i am using opera ????) 

@+ Tinnitus

best regards

 

Hello, idon't have labview on the computer i 'm actually using, but i have posted vi in jpeg format...

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 4 of 36
(6,517 Views)

hello,

 

sorry for delay, here in 8.5

 

@+

 

Tinnitus

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 5 of 36
(6,462 Views)

 Hello...

 

I understood what you made. You fed the for loop always with the whole series but use each iteraction to split a segment from the whole series, and each segment had been analyzed by STFT. I've created a array to view the values and I am a little bit confusing about the results.

 

Since that I am using segments with 512 points overlapped by 50 %, and my whole series have 1024, I was expecting to get a array with 3 columns (each column with the result of spectral analysis for each segment), and each column would have 256 values, because a segment of 512 points processed by spectral analysis will generate "length of segment/2" number of points. But I got a big array with so many columns and rows, do you know why?

 

Find attached the modified version.

 

Thanks for attention

 

Dan07

Message Edited by dan07 on 01-26-2009 12:14 PM
0 Kudos
Message 6 of 36
(6,454 Views)

hello,

 

May be you mix with FFT if you want 3 array of 1D use FFT

                  

SFFT is a  spectogramme function (time-frequency ) so result is in 2D     f |_ t

 

what is the aim of your project ?

 

to create a spectogramme using FFT ?

 

@+

 

Tinnitus

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 7 of 36
(6,435 Views)

Hello

 

The aim of my project its to take a signal and calculate the power spectral density of it. The signal will be interpolated by cubic spline, and the interpolated series will be splitted in segments of 512 points overlaped by 50 %. Each one of these segments will have the PSD calculated. The STFT results are the same that the results obtained by PSD?

 

Thanks

 

Dan07

0 Kudos
Message 8 of 36
(6,421 Views)

dan07 a écrit:

Hello

 

 The STFT results are the same that the results obtained by PSD?

 

Thanks

 

Dan07


no...

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 9 of 36
(6,420 Views)
here the same with psd
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 10 of 36
(6,416 Views)