04-12-2011 04:12 PM
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?
04-12-2011 04:38 PM
Just a dumb question. Is the file on the network? Can you post the portion of the code that is causing the delay?