LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending file through TCP/IP

Hi all,
 
I would like to know whether LabVIEW is able to send file through TCP/IP. Can anyone please enlighten me on this. Thank You
 
Rgds 
0 Kudos
Message 1 of 4
(3,055 Views)
Hi taytay,

Of course it is possible !
Go to function palette >> Communication >> TCP ; I have never used them but here they are.
Go to Help >> Find examples.. and search for TCP, you'll find example code 😉

You can also purchase the "internet toolkit" that provide ready to use FTP VIs to send or copy simple/multiple file(s).

Hope this helps.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 4
(3,050 Views)
Thanks. Found some examples (simple data server.vi and simple data server.vi), but couldnt find something that send the whole file. Could someone pls provide me some details or englighten meon this. Thanks.
0 Kudos
Message 3 of 4
(3,027 Views)
You can use the functions in the File I/O palette (Open->Read->Close) to read all the bytes from a file and send those bytes to the other computer. Then you can use the same functions (only with Write this time) to write the file. If the file is big, read it in chunks. There are examples for reading files as well.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,019 Views)