{"id":667,"date":"2019-12-18T17:04:21","date_gmt":"2019-12-19T01:04:21","guid":{"rendered":""},"modified":"2023-01-24T08:53:24","modified_gmt":"2023-01-24T16:53:24","slug":"667","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/667","title":{"rendered":"How do you change the bin size of an FFT in Graphical Analysis Pro or Logger Pro?"},"content":{"rendered":"<p>The bin size in an FFT is not a setting, but is a result of the interplay between the number of data points and the data-collection rate.<\/p>\n<p>The number of bins in the FFT scales with the number of data points collected, with an additional power-of-two point number requirement. The FFT algorithm requires 2^n points, where n is an integer. If the number of points collected is not a power of two, the FFT algorithm either has to pad the data or truncate it. Graphical Analysis Pro and Logger <i>Pro<\/i> do both in various situations.<\/p>\n<p>The number of bins increases as you supply more data points. The number of bins is close to an integer power of two; if a data table would display 1024 points, but the table cuts off at 1000, the number of bins will be 1000. If the data table has 1100 points, you&#8217;ll see 1024 bins. If you supply 2500 points, you&#8217;ll see the next power of two in bins, or 2048.<\/p>\n<p>In addition, the maximum frequency of the FFT is half the sample rate.<\/p>\n<p>These two factors determine the bin size. It is not a setting, but a result of the FFT algorithm.<\/p>\n<p>We often set up an experiment that uses a graph time range that is shorter than the data collection time. This graph displays the waveform nicely, but a longer data collection takes place so we get the small bin size we are looking for.<\/p>\n<p>RELATED:<br \/>\n<a href=\"\/til\/662\/\">What is the best procedure to get a clean sine wave when using a tuning fork with the microphone?<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>The bin size in an FFT is not a setting, but is a result of the interplay between the number of data points and the&#8230;<\/p>\n","protected":false},"author":8976,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[561,323,350,84,83,533,562],"class_list":["post-667","post","type-post","status-publish","format-standard","hentry","tag-fast-fourier-transform","tag-fft","tag-frequency","tag-logger-pro","tag-lp","tag-microphone","tag-resolution"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/8976"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}