Example Code

Drag and Drop a File to Read 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

A simple application to show how an event structure can be used to view the contents of a text file simply by dragging it from the Windows environment.


Description
Get the Path of the dragged file, ensure it is a text file. If so open it and display the contents within the text box.

 

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Select the path
  • Run the program

 

Additional Information or References
VI Snippet

2-265.png

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

Applications Engineer

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