08-04-2016 03:27 AM
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.
08-04-2016 03:39 AM
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.
08-04-2016 05:07 AM
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
08-04-2016 05:38 AM
08-04-2016 05:41 AM
I might be over compicating it.
-Is it possible to zip and send as single file and unzip in another PC?
08-04-2016 05:54 AM
Hi Uday,
Thank you for the solution zipping and unzipping worked.. One amongst the 2 problems is solved.
Best Regards,
Hima
08-04-2016 05:59 AM
Could you check whether the connection manager will be helpful : http://www.ni.com/white-paper/3055/en/
08-04-2016 07:35 AM - edited 08-04-2016 07:36 AM
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