From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound input to SPL level measure

Hello,

            First of all, I am not using any NI Devices for my project. I am acquiring a motor sound to .WAV file by the help of "sound input to file" example. I have connected my headset microphone near to motor and the correct jack is plugged to soundcard of my PC. I really want to calculate the SPL(sound pressure level) in dB of each motor to see weather it varies or not. I don't how to calculate this sound level in labview. Can some suggest me any VI for this operation. Please help me.

 

0 Kudos
Message 1 of 7
(3,644 Views)

@shjukheter wrote:

Hello,

            First of all, I am not using any NI Devices for my project. I am acquiring a motor sound to .WAV file by the help of "sound input to file" example. I have connected my headset microphone near to motor and the correct jack is plugged to soundcard of my PC. I really want to calculate the SPL(sound pressure level) in dB of each motor to see weather it varies or not. I don't how to calculate this sound level in labview. Can some suggest me any VI for this operation. Please help me.

 


 

The only way to do this is to use some sort of calibration with professional equipment. In your setup it is way to many unknown factors. What you could do is to do some normalization using a group of motors known to be OK. Then detect a bad motor as deviation from this standard



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 7
(3,642 Views)

Yes, exactly I though the same way but first how should I calculate the SPL for the connected motor. Is there any VI for this operation.

0 Kudos
Message 3 of 7
(3,632 Views)

Hi, shjukheter,

 

Coq Rouge is correct that to get a real value for SPL you will need a sensor designed for that purpose.  Sound Pressure Level is a physical quantity just like pressure or temperature, which you need a specific sensor to measure.  Microphones convert sound pressure into electrical signals, but are generally not meant to measure an actual value for SPL.  If you want to get an actual value, buy a cheap SPL meter and take measurements at the location your microphone is at.  Also measure with your microphone, then relate the value from the SPL meter to those you get in your program with the mic.  I bought an SPL from RadioShack for about $70 about 10 years ago.  It actually has an analog output on an RCA jack, so you could potentially use that instead of your microphone to take your measurements.  If you are not in a location that has a radioshack, I'm sure you could find an SPL meter on line.  I did something similar with my SPL meter:  I wrote a program to send audio signals to my home theater then I measured the SPL at the listening spot to find and chart the resonances in the room.

 

Hope that helps

 

Craig

0 Kudos
Message 4 of 7
(3,625 Views)

Thank you so much for good explanations.

 

Yes, I have a digital meter which calculates the SPL. So, I have taken the SPL values by using that meter in bad and good case. I need to check with my microphone in reality. After these discussions, I came to know that my microphone SPL values may vary from these readings. Though, I would like to calculate this value from my microphone. Is there any vi can do this?

 

I would like to calculate this value when my microphone is continuously acquiring the sound data.

0 Kudos
Message 5 of 7
(3,621 Views)

If I get the TDMS signal from an microphone condenser, How can I convert that continuous waveform into SPL value. I just know the formula for SPL is 20 log(Prms/Pref). Pref is usually the air SPL value(20 µPa RMS) and what value should I have to take as Prms. Is that from "Cycle AVg RMS value VI" in labVIEW.

0 Kudos
Message 6 of 7
(3,612 Views)

That sounds like a good place to start.  The signal coming from your condenser mic should basically be an AC signal, so taking the RMS of that should give you a fairly constant value to relate to your SPL.  The tricky part will be scaling the RMS value you get from your mic so it matches the actual SPL you get with your meter.  There are generally a couple of approaches to do this.  The simplest one is to do a linear scaling where you take SPL and microphone measurements at 2 different points and plot a line between them.  Then to get an SPL value for your microphone, just use the equation of that line.  This won't be accurate if your microphone does not have a linear response, though, which most microphones don't.  The other thing you could do is take many measurements over the region of interest and then enter those values in an array constant in the program.  When you get a value from your mic, look at where that value falls in your constant array, then use the interpolation vi to get a closer value.  The more values in your look-up array, the more accurate the conversion from your mic will be.

 

Any way you look at it though, you need to correlate the value of your SPL meter with the value your condenser mic is reading in the program.  There are no formulas that will do this automatically for you, because you have no idea what the physical spec's of your condenser mic are.

0 Kudos
Message 7 of 7
(3,607 Views)