Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
16 ratings:
 3.56 out of 5   

How Can I Use LabVIEW to FTP Files to and from My Real-Time Target?

Primary Software:
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: N/A

I know how to use Measurement & Automation Explorer (MAX), Internet Explorer, Microsoft Windows Explorer or another FTP utility to send and receive files with my real-time target. How can this be done programmatically in LabVIEW?

There are two ways to programmatically FTP files using LabVIEW: Using the built in FTP VIs (Available in the Internet Toolkit for versions of LabVIEW prior to LabVIEW 2012) or using the System Exec VI.

The recommended method is to use the built in FTP VIs. Below is a simple example of how to move a file from a real-time target to a host computer. For real-time targets, the default user and password is anonymous and an empty sting respectively. The host is the IP address of the real-time target. A more advanced example, showing how to move a file both directions, can be found in the LabVIEW shipping example titled "FTP Put and Get"

The alternative method is to use the System Exec VI. The details of this method are discussed in Example Program: Using the Windows system FTP utility from LabVIEW with the System Exec VI.

Related Links:
Example Program: Using the Windows system FTP utility from LabVIEW with the System Exec VI.
KnowledgeBase 4KLL41UQ: Why Do I See Old Data When I FTP to My File on a Real-Time Target?
KnowledgeBase 48M935MY: Why Does My Real-Time Executable Fail if it's Programmatically Transferred via the FTP VIs?
KnowledgeBase 5YR9ISDO: LabVIEW Internet Toolkit Deprecated
KnowledgeBase 3UJACBE9: FTP Transfer of Files between Host and Real-Time Targets in Measurement & Automation Explorer (MAX)


Report Date: 09/05/2008
Last Updated: 11/18/2016
Document ID: 4P4B654H

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit