12-02-2015 07:07 AM
I am trying to send a file from one folder in my computer to another folder in computer using tcpip conncections as part of me learning labview. But I am getting an error
Possible reason(s):
LabVIEW: Serial port receive buffer overflow.
=========================
LabVIEW: The network connection was refused by the server.
I dont know how to fix that. So Please help me. I have attached the VI here. Thanking You,
Solved! Go to Solution.
12-02-2015 07:16 AM
You probably want to have your Server code inside of a loop. The client code would be the one to not have in a loop.
I would also recommend having a timeout for your TCP Listen and use a state machine. This will allow you to cleanly stop your code instead of using the Abort.
12-02-2015 07:26 AM
Thank You. The error is no longer coming, but it seems the file is not being copied properly. In the target folder it is showing a file with just 1kb and not the file I sent and i cant open this file as well. So please tell me what to do. Thanking You.
12-02-2015 07:37 AM
You are just reading 1 character from the file. With your file read, set the count to -1 to read the entire file.
Also, for the file write, there is a boolean input on the top for "Prepend String/Array Size". Set that to FALSE or you will get some extra data at the beginning of your file that you will not want.
12-02-2015 07:53 AM
Thank You very much I got it. No more error and I am able to copy. Thanks a lot. Next step is try and copy to another computer. I will ask doubts when I have problem with that. Thanks a lot for your help on this one.