Example Code

Find Most Recently Modified Document

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 scans through a folder of documents to determine which file within it was most recently edited.


Description
This VI looks at the time associated with each file within a specific folder and determines which file was modified last. It outputs the name of the file, which can be sent to ActiveX, for example, for opening and analysis.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI and navigate to desired folder, as prompted
  2. Observe fact that the code has given the name of the last modified file

 

Additional Information or References
VI Block Diagram

 5-114.png

 

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


ShalimarA | CLA

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