Example Code

List the content of a specific directory on an FTP server Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This example lists the content of a specific folder on an FTP server.

 

Description

After you open a session with the server, you may have to connect to it using your username and password, then you can use the LabVIEW FTP functions. In this example, easy to modify, we use the directory list VI to get the content list of a specific directory on the targeted FTP server. 

 

Requirements

  • LabVIEW 2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Enter your server's IP Address.
  2. Enter your server's user login and password.
  3. Enter the specific path of the folder you want to look at.
  4. Run the example.

 

Additional Information or References VI Block Diagram

VI Snippet

ListFTP.png

 

**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.