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"

0 Kudos
Message 1 of 2
(748 Views)
Solution
Accepted by topic author saurabh1989
08-27-2015 04:09 PM

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
Application Engineer Group Leader, NI Germany
0 Kudos
Message 2 of 2
(739 Views)