Application Directory VI Cause Delay in a While Loop

Updated Jun 20, 2024

Reported In

Software

  • LabVIEW

Issue Details

I have an Application Directory VI in a while loop for my program, however it causes delay and some UI event such as scrolling and resizing the VI window while running cause spiking of delay. What is the best practice to use Application Directory VI?

Solution

This delay and spiking of delay behavior is expected. Even if the Application Directory function runs in a different thread, there is overhead associated with thread swapping and possibly accessing the file system.

Best practice to use this Application Directory VI is that you will need to run the function once and store the file path.