03-03-2014 04:40 AM
i have used following combinations:(voice over UDP)
sample/channel : 600
sample rate: 4000
number of channel : 1
bits per sample : 8
i have used this combination over UDP so theortically data rate will be 32kbps but i measured it (on wireshark), 266 kbps. how can i reduce this data rate and why there is high over rate.
03-03-2014 06:24 AM
you haven't made a simple wiring error into the VI have you?
(4000/600 * 32 = 213.... getting towards your 266 ball park which suggests you might just have a LV wiring mistake for a data rate error of that magnitude.)
equally 32 * 8 = 256 + start/stop per sample = 266???
you sure you're configured correctly??
03-03-2014 09:28 PM
here i have attached my vi
03-05-2014 11:54 AM
Hi Sanjeev,
You obviously looked at the examples as there is nothing going on in the code that is not in the UDP examples.
I have run a few tests for obvious mistakes myself here but not seen anything.
When I checked what LV thinks it is going to send bytes wise in about a second, it is returning 33600 bytes and 4800 byte per loop at the setting you specify.
(See attached VI)
I can't see anything wrong - do you have something else on the network using that port adding to the data you are snooping on with wireshark?
(I've tried altering the sound sampling parameters but nothing seems to change).
You were not closing the UDP connection at the end of the VI running - I have added the UDP close. If the session reference was being held in memory and the data was being duplicated somehow this might explain your big numbers.
James
03-05-2014 01:02 PM
Hello Sanjeev,
Can you confirm that your sample rate is 4,000 samples/second? Human-audible signals are typically sampled at ~40,000 Hz.
Regards,
03-06-2014 02:40 AM
Hi james,
i have added the udp close terminal but there is not any improvement in data rate.
thanks for reply and attechment but i can't open your vi file because i have labview 10.0 please downconvert it in labview 10.0 version and attach it again.
thank you
Sanjeev
03-07-2014 03:50 AM
attached in LV 2010
03-07-2014 04:25 AM
Hi sanjeev,
why did you create a new thread for your same old topic?
What have you done so far as essentially nothing changed in your sender VI?
Have you read all the comment and suggestions given in prashanteces thread I already provided you a link to?