06-28-2016 09:32 AM - edited 06-28-2016 10:01 AM
HI i have a VI file, that takes wav file and converts it to spectrum . i need to find all maximum peaks by treshold (-30) level. I found couple of examples but i can not understand why it displays wrong data at my vi, may be i'm doing something wrong? and another issue , how to display the right x-axis with frequency and gain in y_axis. i know that formula for x_axis is
bin num * sample rate(8000)/framesize (???) which framesize i need to take?
and must to enter this value to scale multiply in the property window. this vi after compilation to dll, will be used in my C# project.
i have attached the vi , and wav file two tones 2KHz and 4KHz.
Solved! Go to Solution.
06-28-2016 11:05 AM
@Arbo wrote:HI i have a VI file, that takes wav file and converts it to spectrum . i need to find all maximum peaks by treshold (-30) level. I found couple of examples but i can not understand why it displays wrong data at my vi, may be i'm doing something wrong?
Why do you have a For loop iterating through the same data..? By default you have a zero wired to the N input on the loop, so you won't get any values out. Either get rid of the loop, or set a value of 1 instead of 0.
What do you mean by wrong data? What is it supposed to be and what are you getting?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-28-2016 11:55 PM
06-29-2016 01:54 AM
Hi Arbo,
do you note the coercion dot at the FFT function input? It has a reason to be shown!
Please read the help for the functions you use in your VI: The FFT function expects a waveform input - waveforms include timing information.
Your data are just a 1D array of samples without any timing information…
Solution: Povide the data for FFT with a waveform including proper timing information!
09-01-2016 01:57 AM
thanks, for a help. i resolved this issue with proper timing .
but i have another question how i can insert an marker to the graph as it made in spectrum analizer with peak marker function.
09-01-2016 02:04 AM