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.
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.
05-13-2012 11:54 PM
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
Solved! Go to Solution.
05-14-2012 12:02 AM
05-14-2012 12:39 AM
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.
05-14-2012 08:52 AM
All of your pictures show a much finer resolution than 10 Hz.
Are you actually talking about the grid spacing of your graphs?
05-14-2012 08:22 PM
Yes I am talking about the grid spacing. I want to have grid spacing of 10hz
05-14-2012 08:34 PM - edited 05-14-2012 08:34 PM
Then you need to set the markers for the X-scale.
05-14-2012 09:24 PM
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
05-14-2012 09:28 PM
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.
05-14-2012 09:53 PM
I shift it outside the loop. But still same situation. How to convert ramp by sample to ramp by delta?
05-14-2012 09:56 PM
Click on the polymorphic selector that is below the subVI and choose Ramp by Delta.