To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI executes simple Get and Put FTP commands to retrieve a single file from a remote FTP server.
Description
The File Transfer Protocol (FTP) is the standard network protocol used for the transfer of computer files between a client and server on a computer network. This VI creates temporary file ftpcmd.txt. Then it builds the text which is provided into the file that will contain the FTP commands, executes the commands within ftpcmd.txt and finally deletes ftpcmd.txt.
Requirements
LabVIEW 2012 or compatible
Steps to Implement or Execute Code
1. Insert Controller IP Address, Remote Path, Remote Filename, and FTP Action
2. Run the VI
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange. **
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks for posting. Do you mind changing your attachment to include the LabVIEW version? "_lvXX.vi" would be fine.
Cleaned it up, made required terminals "Required", and got rid of the enum since I always type define enums and didn't want to pass around a CTL with this VI. Also, for my app, I wanted to pass in the Remote File Path as a single string input. Gave you credit on the diagram. I'll email it your way in case you want to post my version along side yours.
Nice work.