LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound VIs via UDP

Hi,
 
I am trying to send voice data from my microphone input to another OS independent device through wireless.  Although, I am able to do this properly, my VI hangs after a certain time (10 minutes) and I get a buffer overflow error (10846).  I have read throught the forum for trouble shooting this error, but still cannot do it.  I am attaching my code. I'd appreciate any feedback.
 
thanks
KM
0 Kudos
Message 1 of 5
(3,180 Views)

Hi,

Currently You are specifying a buffer size of 320 (the size of the data you are transferring each time), but it is possible that the data you are sending is not being transfered fast enough, therefore, you encountered a data overflow.  You can start troubleshooting this problem by increasing the size of your buffer (on the SI Config.vi) to two or three times the data you are reading, and see if you can detect a difference in the time that passes until you get the error, or if you get the error at all.

Another thing you can do, which will be very helpful for troubleshooting, is to take a screenshot of your error the next time you encounter it.  This way we'll be able to isolate whether the problem stems from the UDP or the SI VIs, and find the proper solution.

In any case, I look forward to your reply.

Regards,

AG

0 Kudos
Message 2 of 5
(3,163 Views)

Hi AG:

I have done implemented your proposed solutions in the past and tried it again after the post.  The problem with increasing the buffer size is that it causes a huge delay in voice transmission and leads to jitter/loss of packets. 

And after probing the error, the problem is with the Sound Vis and not UDP.

I'd appreciate if you could suggest more ideas.

 

thanks

KM

0 Kudos
Message 3 of 5
(3,148 Views)
Hi KM,
 
Can you please attach a screenshot of your error?  One reason for asking is to find out in which VI the error occurs. 
 
I look forward to your reply,
AG
0 Kudos
Message 4 of 5
(3,126 Views)

hi AG:

I think I have solved the problem.  I am not sure if my approach is the most efficient one, but it works!

I played with the VI Execution properties and I dont get that error any more.

Thank you so much for your support.

km

0 Kudos
Message 5 of 5
(3,104 Views)