LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to represent Frequency in Hertz rather than Frequency bin.

In my fft code, when i connect the waveform graph to my FFT, the resulting plot is Magnitude vs Freuqnecy in bins (frequency index). How do I represent this frequency in Hertz instead of the index. 

 

Here is my .vi

 

ffthz.jpg

0 Kudos
Message 1 of 18
(4,622 Views)

vi.JPG

0 Kudos
Message 2 of 18
(4,621 Views)

the fft vi has quite good help, which explains the frequency resolution of the output. you can use scaling options (offset and multiplier) on your chart to match the frequencies

you can also find the help here: http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/fft/

__________________
Engage! using LV2015
0 Kudos
Message 3 of 18
(4,582 Views)
I need other ideas
0 Kudos
Message 4 of 18
(4,576 Views)

Hi gijude,

 

i already answered that in your other thread here! Read the sentence on manipulating the x axis!

 

Please stop creating double posts when you try to solve the very same topic!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 18
(4,568 Views)

After locating the offset. What do i set in order to have a label of 0 at the center?

0 Kudos
Message 6 of 18
(4,486 Views)

After locating the offset. What do i set in order to have a label of 0 at the center?

0 Kudos
Message 7 of 18
(4,486 Views)

Hi gijude,

 

when your axis use a range from -x to +x your offset needs to be -x…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 18
(4,484 Views)

Hi sir GerdW,

 

I already get your point, but I still dont know what to connect in my Offset

 

Here is the screenshot of my block diagram

 

offset.png

0 Kudos
Message 9 of 18
(4,414 Views)

gjjude wrote:

I already get your point, but I still dont know what to connect in my Offset


The offset should be half of your sampling frequency.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 18
(4,405 Views)