The attached VIs contain a partial implementation of the TFTP protocol for a TFTP client (Put File and Get File functions) and can be run on any LabVIEW target which supports UDP. This does not contain a TFTP server implementation.
TFTP (Trivial File Transfer Protocl) is a simplified version of FTP and is used to quickly transfer files within a secure environment between networked systems. One common application of TFTP is to retrieve the application that will be run on a real-time or embedded system controller from a server. The controller only contains a simple boot loader, and the boot loader retrieves the application to be run using TFTP from a predefined server location. This allows the system to update the application run on the controller by simply updating the files on an easily accesible server location and there is no need to deploy software to the embedded controller. A more advanced implementation of this use case is covered by PXE (Preboot eXecution Environment) which includes TFTP.
This implementation support binary mode (octet) and handles NetASCII between two machines using the same OS. The NetASCII implementation does not handle conversion between different operating systems such as accouting for different EOL characters in a file.
TFTP servers can be found by searching the Internet and several free servers are available. These VIs have only been tested with one specific server (Tftpd32).
LabVIEW 8.6 (or compatible)
Steps to Implement or Execute Code
Enter the Host, Remote Path, Local Path, Net Address, Binary, and Timeout information on the front panel of both the Put and Get File.
**This document has been updated to meet the current required format for the NI Code Exchange.**
The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense