From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to enhance frequency resolution of fft spectrum on x-axis

Solved!
Go to solution

Dear Sir

 

I get the frequency spectrum of my real time signal. Frequency span that I want to analyze is 0~500hz. I get that span by setting the sampling rate. But the frequency resolution coming on graph is of 100hz (as shown in attachment). My requirement is to have frequency resolution of 10hz with same frequency span. Please guide me how can I achieve this.

 

I shall be thankful to you

 

Kind Regards

 

Muhammad Irfan

Student

UTP Malaysia

0060149087570

0 Kudos
Message 1 of 11
(3,435 Views)
As noted in the thread you hijacked, increase the number of points.
0 Kudos
Message 2 of 11
(3,432 Views)

I set the dt value to 0.002. For this I set sampling rate 2000hz and no.of samples 1000000. In this way I achieve frequency span of 250hz. But resolution is still 100hz (as shown in attach 1). My question is how can I set resolution to 10hz? I increase the number of samples but from doing this only the frequency span changes and resolution remain same as 100hz. Resolution become 10hz only when I set total frequency span to 50 hz (but My frequency span of intrest is 0~500hz or 0~250hz not below thos).

I am attaching the gaph in attachment 2 from where you can undersatnd what type of resolution and frequency span I want.

Download All
0 Kudos
Message 3 of 11
(3,429 Views)

All of your pictures show a much finer resolution than 10 Hz.

 

Are you actually talking about the grid spacing of your graphs?

0 Kudos
Message 4 of 11
(3,420 Views)

Yes I am talking about the grid spacing. I want to have grid spacing of 10hz

0 Kudos
Message 5 of 11
(3,410 Views)

Then you need to set the markers for the X-scale.

 

 

0 Kudos
Message 6 of 11
(3,408 Views)

Dear Sir

 

I try to do same as per your instruction but can not get required result. I attach the my program. Please comment on it that where is the mistake.

 

I shall be very thankful to you

 

Kind Regards

 

Muhammad Irfan

0 Kudos
Message 7 of 11
(3,404 Views)

Mine is ramp by delta, while yours is ramp by samples.

 

There is no need to put that in the loop.  Since they never change, they only need to be set once outside the loop.

0 Kudos
Message 8 of 11
(3,402 Views)

I shift it outside the loop. But still same situation. How to convert ramp by sample to ramp by delta?

0 Kudos
Message 9 of 11
(3,399 Views)
Solution
Accepted by topic author tronoh

Click on the polymorphic selector that is below the subVI and choose Ramp by Delta.

0 Kudos
Message 10 of 11
(3,397 Views)