Example Code

Compare File Directories Continuously

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 example looks at a directory in your file system that you specify and either compares it to it's original state, or compares it to another file directory.

 

Description

This example runs continuously with an auto-indexed For Loop in order to identify if file anomalies exist (disappearing, renaming, etc.). This will allow for the user to run the code continuously in the background in order to monitor the state of a particular directory.

 

Requirements

LabVIEW 2012 or compatible

 

Steps to Implement or Execute Code
1. Select the Original Directory Path on the front panel
2. Select the Directory to Compare Path (if desired)
3. Click the Compare button
4. Run the VI

 

Additional Information or References

Capture.PNG

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