Example Code

Dynamically Retrieve Real Time Target Directory and INI File

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 Real-Time Module
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to retrieve a list of directories and single files from a real-time target using FTP protocol.

 

Description

This program shows how to dynamically retrieve the contents ("FTP Directory Listing.vi") of your Real Time Target. After getting the directory list the example can also retrieve the contents of the "ni-rt.ini" file or any other file and save it to the host machine using the "FTP Retrieve Multiple.vi". The "FTP Retrieve Multiple.vi", can retrieve any file stored on your Real Time Target.
Note: On newer NI Linux Real-Time targets you need to install Legacy FTP Server in order to use this example.

 

Requirements

 Software

  • LabVIEW Full or Professional Development System 2012 (or compatible)
  • LabVIEW Real-Time Module 2012 (or compatible) for target application

 Hardware

  • NI Real-Time target (e.g. 9024 or compatible)

 

Steps to Implement or Execute Code

  1. Download and extract the attached file "Retrieve List of Directories and files using FTP LV2012 NIVerified.vi"
  2. Open VI and follow the instructions in Front Panel and Block Diagram and run the program.

 

Additional Information or References

Retrieve List of Directories and files using FTP LV2012 NIVerified.vi - Front Panel.png

 

Retrieve List of Directories and files using FTP LV2012 NIVerified.vi - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

A_Ryan
AES
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
HunterSeeker
Member
Member
on

Could you reload a picture of your VI, with all of the VI labels turned on, it would make the picture much more useful

Thanks

Hunter

Todd S.
NI Employee (retired)
on

looks great! thanks for posting!

Todd S.
LabVIEW Community Manager
National Instruments