This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

FTP Files to and from a Real-Time Target with LabVIEW

Updated Oct 16, 2020

Reported In


  • CompactRIO Controller


  • LabVIEW Real-Time Module

Issue Details

  • 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.
  • Can this be done programmatically in LabVIEW?


There are two ways to programmatically FTP files using LabVIEW:
  1. The recommended way is to use the built in FTP VIs (this requires the Internet Toolkit for versions of LabVIEW prior to LabVIEW 2012).
  1. The alternative method is to use the System Exec VI.

Additional Information

  • When using the provided FTP VI example use the following values
    • For real-time targets the default user name is anonymous and password is an empty string. If you receive error¬†15530, you may have an incorrect user name and/or password.
    • The host is the IP address of the real-time target.
  • Make sure to designate a file name on both the remote path and the local path.
  • A more advanced example titled FTP Put and Get¬†can be found via the LabVIEW Example Finder.