LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP progress bar

Hello All,

                       Can you please tell me the following

 

1. In TCP how to implement the progress bar ?

2. How to check that network connection is lost in between the communication i.e inbetween TCP read operation ?

3. How to read the number of bytes read so far in the TCP communication ?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 1 of 7
(2,749 Views)

Hi

 

just wanted to confirm that the other two posts are also for the same questions:

 

post 1 and post 2

 

suggestion would be to not post the same question multiple times.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 2 of 7
(2,740 Views)

Do you have solution ?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 7
(2,731 Views)

@Ranjeet_Singh wrote:

Hello All,

                       Can you please tell me the following

 

1. In TCP how to implement the progress bar ?

2. How to check that network connection is lost in between the communication i.e inbetween TCP read operation ?

3. How to read the number of bytes read so far in the TCP communication ?


I answered question 2 in your other thread.

 

You shuold be able to find examples for progress bars in the shipping examples. You will basically need to know how many you are sending/reading and track the number that actually were sent/received. Then update your progress bar accordingly. Both the TCP Read and TCP Write return the numbers of bytes received/transmitted.

 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 7
(2,699 Views)

First of all what is shipping example ?

 

If i know that number of bytes i am going to read than also this TCP read will show the number of bytes only after reading entire byte. So progress bar cant be implemented in this scenario.

                             What i mean to say that if i want to read 10000 bytes than the DATA OUT string in the TCP READ will be updated once the read process is over hence this is not dynamic hence progress bar cant be implemented.

Any other solution ? 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 7
(2,686 Views)

Help menu, Find examples.

 

If you are dealing with only 10,000 bytes, then why are you worried about a progress bar?  10 KB is going to come in pretty instantaneously, there would be no need to update someone with a progress bar.

0 Kudos
Message 6 of 7
(2,665 Views)

10,000 is just an example. Data will vary from 200 bytes to 2097162. So i need to implement progress bar & definately for larger bytresSmiley Very Happy

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 7
(2,655 Views)