LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a folder with different types of files (images, text files, videos ) and save it to another folder at the client end using TCP/IP?

Hi,

 

 

I am facing with two problems in my program. Kindly help me if possible.

 

1. How to switch between two clients. i.e.,  stop one client when the other is running and viceversa. For more detaisl I am attaching the program.

How to stop one client with port number 6000 when client with 5000 is running?

 

2. I am using TCP/IP to send and recieve data from one PC to other. But i have a problem in Receiving  and saving the data at the client side as the save option doesnt save the documents transfered. Instead It saves the path from the sender pc.The transfered documents are images, pdf files, videos.

 

In short transfering a folder and saving the same folder to the other PC.

 

Please write to me if more details are required.

 

Your inputs will be appreciated.

 

Thank you.

0 Kudos
Message 1 of 8
(4,285 Views)

Once i used this example to transfer data between two PCs using TCP: http://www.ni.com/example/27842/en/

-As said in desciption it saves with same file name and extension.

Thanks
uday
0 Kudos
Message 2 of 8
(4,276 Views)

Hi Uday,

 

Thank you for the solution.

 

It works great but I need to send a complte folder, however the solution is for a file in a folde.

 

Its a big FOLDER that i need to send to other PC using  TCP.

 

Let me know if you have any suggestions for transfering a FOLDER.

 

Thanks,

Hima

0 Kudos
Message 3 of 8
(4,258 Views)

Hi skshatri,

 

you have a solution for one file, but you want to send many files?

Usually in programming (not just LabVIEW!) you use a loop to do a task more than once…

Best regards,
GerdW


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

I might be over compicating it.

-Is it possible to zip and send as single file and unzip in another PC?

Thanks
uday
Message 5 of 8
(4,242 Views)

Hi Uday,

 

Thank you for the solution zipping and unzipping worked.. One amongst the 2 problems is solved.

 

Best Regards,

Hima

0 Kudos
Message 6 of 8
(4,237 Views)

Could you check whether the connection manager will be helpful : http://www.ni.com/white-paper/3055/en/

Thanks
uday
0 Kudos
Message 7 of 8
(4,235 Views)

Hi Uday,

 

The problem here is that I have two servers in a program in a case structure and need to send data to two different clients which are in a same program in the other PC.

 

The second clinet must not work when the first client is reading the data and vice versa.

 

Please ask me for more datails if the question is not clear.

 

Thanks,

Hima

0 Kudos
Message 8 of 8
(4,222 Views)