Example Code

Read of Folder of Images and Return File Paths 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

This simple example demonstrates how we can return the file paths for all images in a particular folder, and output the paths as an array.

 

Description

This VI reads in a single image's file path from a particular folder. Then by using the List Folder.vi inside of a For Loop, every image that has the specified file extensions (.tif, .jpg, .png) is returned. These image's names are then added into a folder path and returned as an array.

 

Requirements

LabVIEW 2012( (or compatible)

 

Steps to Implement or Execute Code

  1. Choose the image file path  
  2. Run the vi.

Additional Information or References

Front Panel

FP.JPG

VI Snippet

BD.png

 **This document has been updated to meet the current required format for the NI Code Exchange.** 

 

 

Cole R.
National Instruments
Software Engineer

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