LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid dialog in Open/Create/Replace File? (yes, I set 'no adv.dialog')

I would like to avoid the dialog box which seems to
appear whenever I can successfully open a file:
I tried both 'advisory dialog' FALSE and TRUE for the following, as well as all file modes (open,create,etc):
path:"C:\labview" file:"test.txt" ERROR 8
path:nothing file:"C:\labview\test.txt" dialog box!
path:"C:\labview\test.txt" file:nothing ERROR 8
path:"C:\labview\test.txt" file:"C:\labview\test.txt"
ERROR 8
as well as other less sensical combinations.
0 Kudos
Message 1 of 4
(3,222 Views)
If you specify a complete and correct path to the file path input and are doing an open operation, you normally do not get an error or dialog. In your case however, you are getting error 8. If you right click on the error code and select Explain Error, you'll see that error 8 is "File permission error". This can happen if another application or another VI has already opened the file and has denied access to any other app. Also, if you're using Win 2K or XP, check the permissions on the LabVIEW folder. By default. the security setting is for only admin users to have full control. If you're logged on as something other than admin, you may get the error. Try opening a file in a folder that has all permissions set for all users and see if you get the same er
ror.
Message 2 of 4
(3,222 Views)
I am having the same problem when trying to programmatically create a file. I have made sure I have a legitimate file path/name, no other app/vi is denying access, I have 2k, but I am admin plus the folder where I try creating the file has permissions for everyone set to full control. Any ideas??
0 Kudos
Message 3 of 4
(3,222 Views)
I'm guessing that you put the filename into the 'default filename' input.
Instead you need to put the path (including filename) into the 'file path'
input. The 'default filename' input is for when you want to allow the user
to input the filename but give him a suggestion of what would be
appropriate.

"Grover" wrote in message
news:5065000000050000001FCE0000-1042324653000@exchange.ni.com...
> I am having the same problem when trying to programmatically create a
> file. I have made sure I have a legitimate file path/name, no other
> app/vi is denying access, I have 2k, but I am admin plus the folder
> where I try creating the file has permissions for everyone set to full
> control. Any ideas??
0 Kudos
Message 4 of 4
(3,222 Views)