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: 

Streaming sound using TCP

Solved!
Go to solution

Hello 
I am trying to stream audio (analog data from sound card) to a remote PC using TCP protocol but when I trying to run
the program then message "Error 4823 occurred at Sound Input Read (DBL).vi->sound_local.vi"

Download All
0 Kudos
Message 1 of 2
(2,455 Views)
Solution
Accepted by saurabh1989

Hi AOE,

 

This sound to me like the loop lasts longer than a sampleperiod. Do you also see the error when you are only making a sound acquisition with nothing else? If not, it could be that your TCP communication slow down the whole acquisition and if the loop time is greater than the acquisition time, it could lead to this error. A way to avoid it would be to separate the measurment task and the communication task in two different loop and buffer the measurment in a queue (using a design pattern such as the producer/consumer one should do the trick).

 

Best regards

______________
Florian Abry
Inside Sales Engineer, NI Germany
0 Kudos
Message 2 of 2
(2,446 Views)