LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to parse the wav file


@Brzhou wrote:
Hi Sir, Is it able to parse the wav file, get the level, SNR, THD, etc ? Thanks.

On a side note, what you apparently want to do is analyze the sound.

 

This has absolutely nothing to do with "parsing" which is automatically done when you read in the file, i.e. converting a series of bytes into a sound datatype.

0 Kudos
Message 11 of 17
(581 Views)

Thanks Bob and Gerd.

I will check your VIs, before that, I also attached my wav file and the result by python from others.

 

Again, thanks for your help in this forum, really help me a lot.

 

 

Learning from other people
0 Kudos
Message 12 of 17
(564 Views)

Hi Brzhou,

 

I really picked only two functions, and used Quickdrop to show all inputs/outputs of the SINAD function:

Are you working in the same group as this guy?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 17
(560 Views)

Hi Gerd, 

 

Thanks for your info, I am not the same group of that guy.

Let me try.

Thanks.

Learning from other people
0 Kudos
Message 14 of 17
(550 Views)

Hi Gerd, 

 

Sounds like it is fine to read out the wav file and get some values:

Brzhou_0-1682339606806.png

 

The waveform graph is similar to that when I use matlab to open it.

But for the value of SINAD and THD Plus, it is 161.76m and 981.55m, a little confused, because normally SINAD should be dB, and THD should be %.

Still checking it.

Thanks.

Learning from other people
0 Kudos
Message 15 of 17
(535 Views)

Hi Brzhou,

 


@Brzhou wrote:

But for the value of SINAD and THD Plus, it is 161.76m and 981.55m, a little confused, because normally SINAD should be dB, and THD should be %.


Read the help for all the functions you use in your VI…

(Maybe your expectation is wrong/different to LabVIEW implementations. 😄 )

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(524 Views)

Yes, understand, that is the reason I hope someone have those kind of practice that he really implement it for audio product testing in factory or lab enviroment.

Thanks.

Learning from other people
0 Kudos
Message 17 of 17
(517 Views)