ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI takes in a listing of files from a folder path, finds out all the files in the folder, and returns the path to the most recent file.
Description
Finding the most recent file in the specified folder can be challenging and needed for some applications. Thanks to this example, a user can get the most recent file programmatically.
Requirements
Software:
Steps to Implement or Execute Code
1. Select folder for searching most recent file.
2. Run VI.
3. Observe most recent file at File Path Out indicator
Additional Information or References
**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.
Check the List Folder VI.
This vi returns a folder not a file..?
The issue with this is it returns files in modification date, and if someone opens a file after it is created it will affect the last modified date used by this function - better to put an ISO 8601 timestamp in the filename! - safer long term from manual intervention.