LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve faster directory creation?

Hi all,

if I create a directory with LabVIEW with New Directory.vi, it takes a few seconds (2-3) until it is really present in file system.
If a fast user works with the program I created, he could try to access the directory just before it has been created which produces an error.

Are there methods to speed directory creation and registration up?
Do I have to poll continously if the dir has been created?
0 Kudos
Message 1 of 2
(2,510 Views)
> if I create a directory with LabVIEW with New Directory.vi, it takes a
> few seconds (2-3) until it is really present in file system.
> If a fast user works with the program I created, he could try to
> access the directory just before it has been created which produces an
> error.
>
> Are there methods to speed directory creation and registration up?
> Do I have to poll continously if the dir has been created?

Is it that a call to ListDir fails to show the directory, or that the
Explorer doesn't update its window. I'd definitely expect the Explorer
to update at a slow rate so that it doesn't slow things down, but I'd
expect that a programmatic access to the folder/directory would succeed
immediately upon return. If you want the explorer view to updat
e more
quickly, you might need to look for an SDK call specific to that. I'm
pretty sure nothing in the LV palette will do that for you.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,510 Views)