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 signal acquisition at lower number of samples

Hi

 

Good day.

 

I am beginner to LabVIEW software and recently working with LabVIEW 2017 for data acquisition.  

 

I have to acquire respiratory sound signals continuously using a digital stethoscope connected to PC via audio jack. I need to perform multiple recordings in one acquisition, so I added a waveform chart into the vi for continuous acquisition and write to measurement file for saving data of multiple recordings.

 

I need to acquire sound signals at lower number of samples (such as 100Hz). When I change the number of samples from 10000 to 100, it showing some errors. 

 

How could I acquire the sound signals at lower number of samples? Could anyone guide me on this?

 

Attached here is the vi responsible for sound acquisition and errors shown. 

 

Thanks.

Regards,

Priya

Download All
0 Kudos
Message 1 of 2
(1,787 Views)

You are likely overrunning your read buffer.  You really should separate your acquisition and outputs.  Do this by using a Producer/Consumer.  The idea is to have your acquisition in a single loop and use a queue to send the data to another loop that can then write the sound out and/or write the data to a file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(1,758 Views)