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

Updated Nov 12, 2018

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW 2017 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?

Solution

  • There are two ways to programmatically FTP files using LabVIEW:
  1. Using the built in FTP VIs (this requires the Internet Toolkit for versions of LabVIEW prior to LabVIEW 2012)
  2. 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.

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.
    • 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 Files.vi can be found via the LabVIEW Example Finder.

WAS THIS ARTICLE HELPFUL?

Not Helpful