LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Audio Measurement and processing with extract single tone information.vi

Solved!
Go to solution

Hi, 

 

I'm testing the audio from a product for High and Low Settings, and I think I already have the test working, but I would like to fully understand what I'm doing.

 

this is the test process that I'm following:

 

  1. acquire the Audio thru a microphone
  2. filter the audio data using the Digital IIR Filter.vi
  3. use the extract single tone information.vi to get the highest amplitude

I'm getting the highest amplitude around 0.129 at 1200 Hz

but thru the exported spectrum data I'm getting as a High Value -22.173 dB at 1200 Hz too.

 

My question is why in the detected amplitude is getting a  value (0.129) and other value in the exported spectrum data (-22.13dB). probably they are at different scale/units but I don't understand the math behind.

 

in advanced thanks for the support 

 

 

0 Kudos
Message 1 of 5
(3,121 Views)

Hi Luis,

 


@LuisFuentes wrote:

My question is why in the detected amplitude is getting a  value (0.129) and other value in the exported spectrum data (-22.13dB). probably they are at different scale/units but I don't understand the math behind.


Let's see: all we get from you is a cryptic description and an image of the frontpanel of your VI. Two values are marked in that image…

What kind of answer do you expect with so little information?

How should we comment on your VI when you aren't willing to attach your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,082 Views)

Adding VI

 

 

Regards

Luis Fuentes

0 Kudos
Message 3 of 5
(3,025 Views)
Solution
Accepted by topic author LuisFuentes

Important things to note - read HELP first!

 

This is what I found by reading the help of the functions used,

  1. Exported signal uses Hanning window - this means due to windowing signal amplitudes will be reduced
    santo_13_0-1625008052641.png
    santo_13_1-1625008077191.png

     

  2. FFT function uses Hanning window by default
    santo_13_2-1625008179682.png

     

  3. Extract Single Tone Information - does not do any windowing
    santo_13_3-1625008219024.png

     

  4. With this information said, 77.86mV corresponds to -22.1734dB
    santo_13_4-1625008324136.png

     

  5. And why it does not use 129.22mV as amplitude is because it applies a Hanning window which reduces the amplitude to 77.86mV instead.
    santo_13_5-1625008414880.png

     

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 5
(3,018 Views)

The tone detection vi doens't rely on the single frequency bin 🙂

Have a look at the residual signal, IF the amplitude would be wrong, it would show in the residual signal.

Some information on how the tone detection vi works can be found in the presentation linked here.

 

I like to use the tone detection vi , however since the actual code isn't available,  I use the validated sine approximation (LSME fit)

 

P. Händel, Evaluation of a standardized sine wave fit algorithm, 2000 
IEEE Nordic Signal Processing Symposium, Kolmården, Sweden, 13-15 June 
2000, pp. 453-456, 
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.35.3486

other paper easy to get:
https://www.ippt.pan.pl/repository/open/o3063.pdf

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(3,005 Views)