LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong FFT graph

Hi,

 

When I run my signal I can see a spectrum but it is correct only for one number of samples, when I change it the frequency doesn't match, amplitude isn't correct too. What is wrong with this FFT 😞 ?

 

Thank You,

Mateusz

 

 

0 Kudos
Message 1 of 5
(941 Views)

Can you reduce it to a simple example that does not contain drivers and missing subVIs.

 

Most of us don't understand Polish. Which graph is the FFT?

What number of samples is correct and what happens when you change it to something else? What amplitude do you get and and what do you expect to get instead? Are you correctly setting df based on dt and N?

0 Kudos
Message 2 of 5
(914 Views)

Hi Mateusz,

 


@Matipa wrote:

What is wrong with this FFT 😞 ?


Are you talking about that "Auto Power Spectrum" function before the "Widmo Sygna" graph?

Did you notice that coercion dot at its input? Do you know the meaning of coercion dots?

Did you read the help for that function? Did you wire ALL its inputs (as already asked by Christian)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(890 Views)

Hi,

 

Yes, i am talking about that "Auto Power Spectrum" function before the "Widmo Sygnału" graph.

I noticed that coercion dot, I know that it mean that program is making conversion there (I know it should be made by me not by program too).

I used help of course and I didn't wired all of inputs just because i have waveform not dbl 😕 I don't know how to do this to be correct for sure.

 

I used now other block to make a spectrum without any conversion (possible to see it in uploaded program), but now I can't do the measure of frequency on which is the peak and amplitude of it.

 

0 Kudos
Message 4 of 5
(880 Views)

Hi Mateusz,

 


@Matipa wrote:

I used now other block to make a spectrum without any conversion (possible to see it in uploaded program), but now I can't do the measure of frequency on which is the peak and amplitude of it.


Why don't you use Waveform functions, when you are working with waveforms?

 

See this:

(This is just an example of how to connect functions to your wires WITHOUT any syntax errors, coercion dots or DDT wires/ExpressVIs. It is not meant to exactly do what you are looking for in a mathematical/physical/technical sense.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(871 Views)