LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in first call to "Check if File or Folder Exists.vi"

I'm trying to track down an annoying 5-10 second delay in the init sequence of my primary VI. I narrowed it down to a subvi containing the built-in (LV8.2) "Check if File or Folder Exists.vi" (AKA "the check"). Highlight execution shows the check running during the 5-10 second delay.

 

- When I remove the subVI containing the check, the delay is incurred in the next subVI containing the check, including several different subVIs

- If I remove all subVIs containing the check, the program runs through initialization in <100 ms, even with several calls to the check on the main VI BD

 

This may be specific to the subVIs I'm using, given that they aren't re-entrant and there are a few instances of them in the slow cases. Having said that, when I include a check after each non-reentrant subVI, the case runs in <20 ms.

 

Any ideas? 

0 Kudos
Message 1 of 2
(2,302 Views)

Just a dumb question. Is the file on the network? Can you post the portion of the code that is causing the delay?

=====================
LabVIEW 2012


0 Kudos
Message 2 of 2
(2,292 Views)