LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File and directory permissions

Hello!

Does anybody know how Labview deals with file and directory permission
locking under WinNT.
I have a following problem. There is a main VI running in a state machine
mode and it fires up a SubVI that has a bunch of SubVIs. One of these
SubVIs are creating a temporary directory and files that I want to delete
once everything is over. However I always get a file permission error when
trying to delete those files, also when using Explorer and trying to delete
those files I get a file sharing error. This happens even when main VI has
been stopped. How comes LabVIEW does not unlock that file and directory.
Rather annoying!
Thanks for you help.

Reinis Kanders
0 Kudos
Message 1 of 2
(4,808 Views)
Sounds a bit like the temp files are not being 'closed' after being written
to or read by Labview. If you are using the advanced file vi's make sure
that they are closed afterwards.
If the OS assumes they are open then it will not allow deletion etc even
outside of Labview.

bubucis wrote in message <7kv2kl$3flk$1@newssvr01-int.news.prodigy.com>...
>Hello!
>
>Does anybody know how Labview deals with file and directory permission
>locking under WinNT.
>I have a following problem. There is a main VI running in a state machine
>mode and it fires up a SubVI that has a bunch of SubVIs. One of these
>SubVIs are creating a temporary directory and files that I want to delete
>once everything is over. However I always get a file permission error when
>trying to delete those f
iles, also when using Explorer and trying to delete
>those files I get a file sharing error. This happens even when main VI has
>been stopped. How comes LabVIEW does not unlock that file and directory.
>Rather annoying!
>Thanks for you help.
>
>Reinis Kanders
>
>
0 Kudos
Message 2 of 2
(4,808 Views)