LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating client number of samples.

Hello,

Using a black-box approach, I am trying to calculate the number of Bytes/Sec on the client-side of a TCP connection. Without knowing the server-side number of samples (in this case: 128000) I need to determine the number of samples from the client-side Byte Read. I think I have enough information - see attached zip file. I need some help finding/calculating the number of samples/sec and determining Bytes/sec (client-side) using only the information received.

 

Thank you in advance for your help.

 

Download All
0 Kudos
Message 1 of 4
(2,686 Views)

Hi,

 

Could you further clarify your problem statement? It's unclear to me what your question is. I understand you'll be reiterating yourself a little bit by doing this, but it should clear the air a bit.

 

1. What are your given (known) values?

2. What are you trying to calculate? 

3. How are you trying to calculate it?

4. What specifically are you asking? Are you trying to figure out an equation? are you changing your code? Or something else?

 

As an aside, thanks for including a picture of your VI. That's often helpful for us to see.

 

Best,

Ben

0 Kudos
Message 2 of 4
(2,622 Views)

Hi Ben,

Thank you for getting back to me. I was able to figure out the problem that I was having! 🙂 I had modified the SimpleTCP.lvproj Server.vi with the attached ConversionSubVI. I needed this subvi to measure throughput. On the client.vi-side I had to divide the BytesRead/by 8 to calculate the number of Samples. I used this solution as the input to my subvi and divided the BytesRead by the output of the subvi...if that makes any sense. Anyway, it worked!

 

Merry Christmas! 🙂

John

Download All
0 Kudos
Message 3 of 4
(2,600 Views)

Hello,

 

Great! I'm glad you were able to get this fixed! 

 

Best,

Ben

0 Kudos
Message 4 of 4
(2,585 Views)