LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI creates file, next SubVI can't access file, "permission denied"

All.

 

I created. wrote to, and closed a text file (TeX) from a sub-VI (attached block diagram).  A subsequent subVI was called that included a system call to latex.exe, which failed with a "permission denied" error on the file I had just created.

 

When the subVI is run alone, with the existing file, there is no error.  When the same VIs are run from Linux, it works well.

 

Any suggestions?  I've already run with deny-mode = NONE -- didn't work.

 

   ...Dan
 

Download All
0 Kudos
Message 1 of 5
(3,109 Views)
BTW:  Replacing "Open File" VI with "New File" VI doesn't help -- adding "Flush" doesn't help either.
0 Kudos
Message 2 of 5
(3,089 Views)

Never mind -- I had an extra "Open File" in there, must have opened up 2 references and only closed 1.

 

   ...Dan
 

0 Kudos
Message 3 of 5
(3,084 Views)

Hello Dan,

 

So now that you found the two Opens, did removing one of them fix this issue?  Please post here if you are still having issues and we will do our best to assist you!  Have a great day! 

Thanks!
Bob H
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,046 Views)

Bob_H. wrote:

Hello Dan,

 

So now that you found the two Opens, did removing one of them fix this issue?  Please post here if you are still having issues and we will do our best to assist you!  Have a great day! 


Yes, the issue is resolved, I feel like a dope!

 

Interesting, the difference between Linux and XP though.  Also, I'm surprised the "deny none" option didn't kick in. 

 

   ...Dan
 

0 Kudos
Message 5 of 5
(3,044 Views)