10-21-2012 12:48 PM
Hi,
I need convert noise time data into diadem in dB(A) data, but I didn´t find any tools to use. I didn´t find any weighting filter or script for it
10-30-2012 05:13 PM
Hi Gaetano,
Here's a VBScript you can use to transform the amplitude to dbA.
IF AmplitudeType = "Ampl.Peak" THEN R1 = 2 ELSE R1 = 1 L1 = CNo("GroupName/ChannelName") Call FormulaCalc("Ch(L1):= R1*10*Lg(Ch(L1)*50000)")
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-31-2012 10:39 AM
hi, Turpin
OK, this script convert noise data measured Pa (Pascal) in dB - ref: 20uPa, but I need put the dB(A) weighting to convert noide dB to dB(A), it is it big issue!!!
11-01-2012 04:13 PM
Hi Gaetano,
I'm sorry, you're right. I posted the pure dB transform. Here's the dB(A) analysis using an approximate polynomial fit, not the full lookup table approach:
L1 = CNo("GroupName/ChannelName")
IF AmplitudeType = "Ampl.Peak" THEN R1 = 2 ELSE R1 = 1 FormulaTxt = "0.7943463958*(Ch(L1)^2+20.6^2)*(Ch(L1)^2+12200^2)" FormulaTxt = FormulaTxt & "*sqrt((Ch(L1)^2+107.7^2)*(Ch(L1)^2+737.9^2))" FormulaTxt = "Ch('dbA Fact'):= 20*Lg((12200^2*Ch(L1)^4)/(" & FormulaTxt & "))" Call FormulaCalc(FormulaTxt) Call FormulaCalc("Ch(L1):= R1*10*Lg(Ch(L1)*50000) + Ch('dbA Fact')") Call ChnDelete(CNo("dbA Fact"))
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-06-2012 02:23 AM
Hi Brad,
Thanks for your help
08-19-2013 08:31 AM
Hello Ni Support,
has anyone proofed that this Formula works for time domain data? On which formula for A weightening are you referring to?
?
09-03-2013 11:16 AM
Hi ruthrof,
I checked with R&D, and that is indeed the exact formula behind the DIAdem script for dBA-weighting.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-11-2018 05:44 AM
Which is the correct procedure to convert pa to dB A ?
First apply frequency filter to Pascal value then convert it to dB and calculate the RMS value or
2. convert pa to dB first then apply frequency a filtering and then take the RMS value ?
For the number 2, after converting pa to dB the frequency A weighting is not applying, it shows that " channel must not contain no values " , kindly help with this
10-19-2018 02:56 AM
The correct procedure for time data to RMS in dB(A) is:
1. Apply the filter on the time data
2. Calculate the RMS
3. Convert to dB
Actually there are three different ways to do the A-Filtering and it is important to not mix them up:
1. You can apply a digital filter to the time signal. The time signal is then still a time signal but the low and high frequencies are lowered and parts above 1kHz are pushed up. With this time signal, you can do additional calculations like RMS over all, running RMS, FFT or third/octave and all results are A-weighted.
The script for the filtering looks like this:
Set ChnResult = ChnWeightFilter("","[1]/Signal","/WeightedSignal","AWeight")
This filter must not be applied to anything else then time signals. It is not correct for FFT or Third/Octave results. If the amplifier of the microphone provides an A-Filter, the filtering can be done there and it would be wrong to do it twice.
2. The formula from ruthrof above defines the filter characteristic that can be used to calculate the offset for each frequency if you have calculated the FFT from you time signal.
3. There are tables for third/octave values that define the offset for specific frequencies. This tables can be used for the result of a third/octave calculation.