Using FTP With an NI Linux Real-Time Target

Updated Nov 12, 2018

Reported In

Hardware

  • CompactRIO Controller

Operating System

  • NI Linux Real-Time

Issue Details

Solution

Note: Use of the FTP in NI Linux RT is not recommended because the FTP client has been deprecated and is no longer supported as of 2013. The client also only allows anonymous connections which is inherently insecure. It is recommended that you use SFTP or WebDAV instead.

To use the FTP Server with your NI Linux Real-Time device, you will first need to install the FTP Server to your target:
  1.  Open Measurement & Automation Explorer (MAX).
  2. Go to Remote Systems and find your NI Linux Real-Time target and expand the options.
  3. Right click Software » select Add/Remove Software

 
  1. Select either the software installation underneath the relevant LabVIEW Real-Time menu or the option for custom software installation and then click NextNote: In LabVIEW Real-Time 2018 and later, the FTP server is only when using the custom software installation option.
 

 
  1. Depending on which software selection you made, you will see one of the following dialogs, one for the default software installation and another for the custom software installation, respectively. 
 

 
  1. Choose Legacy FTP Server and then select Next to let the software install.

Now that you have installed the FTP Server, you can FTP files to your NI Linux Real-Time target normally or programmatically .

Additional Information

The FTP Server is not installed by default on NI Linux Real-Time (LinuxRT) devices.  This is because WebDAV is the recommended file system access method when going over HTTP or HTTPS.  WebDAV is a more secure method as it uses the NIAuth digest authentication whereas the FTP Server does not. See Using WebDAV to Transfer Files to Real-Time Target for more information.  Complete the following steps to install the FTP server to your target:

If using the FTP VIs in LabVIEW, consider the difference in file paths between NI Linux Real-Time targets, and other Real-Time targets. For example, see LabVIEW Help: FTP Get Multiple Files VI.

If you are having trouble with logging in when trying to FTP, try resetting the password to a non-blank password.

WAS THIS ARTICLE HELPFUL?

Not Helpful