LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Logarithmic frequency incrementing

How can you use labview to increment the frequency using a logarithmic increment that permits uniform spacing of the data points on the frequency scale?
0 Kudos
Message 1 of 4
(4,434 Views)
Use a for loop to generate scale factors. LOG10 for decades and LOG2 for octaves where the loop counter is the input. Divide the loop counter by the number of points you want in each decade/octave, then scale the output array of the for loop by the start frequency. The example shows the equal tempered scale note frequencies starting at 400Hz.
Message 2 of 4
(4,417 Views)
Here is a vi that generates points with log spacing where the user can supply start, stop and number of points.


Randall Pursley
0 Kudos
Message 3 of 4
(4,410 Views)
Here is a jpg of the code.
Randall Pursley
0 Kudos
Message 4 of 4
(4,408 Views)