Example Code

File Selection Dialog 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

Overview

LabVIEW VI for selecting multiple files from multiple locations.

 

Description

Displays a file list dialog. Single/multiple files can be added by pressing the "Add Files" button. Use the "Add Folder" button to add all the files in a selected folder. Single/multiple files can be removed from the list using the "Remove Selected" button. Returns a list of selected files including paths.

 

Requirements

Software

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Run the VI

2. Press the "Add Files" button to add files in the list.

3. Press "Add Folder" button to add all the files in a selected folder.

4. Press "Remove Selector" button to remove selected files.

 

Additional Information or Reference

 1-383 FD.png

 

1-383 BD.png

 

"Add Folders" only shows the selected .csv or .txt files in the folder. 

 

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