Why am I getting a big spike in audio at the start of each sample in LabView?

179 Views Asked by At

enter image description here

Everything else seems to be fine but at the start of each recording (1 second each) there's a big amplitude spike, I'm wondering what is causing it and how to fix it.

-I'm using the correct mic (it is recording audio properly)

-2 Channel

-16 bit resolution

-Duration of 1 second

-Sample Rate 48000Hz

Thanks in advance for any aid that you are able to provide!

1

There are 1 best solutions below

3
On BEST ANSWER

You are using an Express VI which will Initialise the hardware on start-up.

Rather open the diagram of the Express VI and recode it to have the Initialisation routine outside the While loop, and only the recording VI inside the loop.

Express VIs are not optimised for good coding practices. :-)