LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

udp data rate

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.

0 Kudos
Message 1 of 8
(3,576 Views)

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??

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 8
(3,556 Views)

here i have attached my vi

0 Kudos
Message 3 of 8
(3,531 Views)

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

 

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 4 of 8
(3,492 Views)

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,

Tom L.
0 Kudos
Message 5 of 8
(3,480 Views)

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

0 Kudos
Message 6 of 8
(3,462 Views)

attached in LV 2010

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 7 of 8
(3,444 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(3,440 Views)