I am trying to create a "silent" temp file to buffer my data into. I use the open file vi from the file I/O and wire a unique name and start path, set the function to "create" and set the advisory boolean to false but I still get a pop-up dialog box (with all the information passed to the vi). I do not want this dialog to open an the boolean des not seem to make a difference. I am using LV7.0 and windows 2000 (but this has to work on XP as well). Why cant I get rid of the dialog box? The help file for this VI seems to imply that a false value to "advisory?" would solve my problem but it does not.
I do this all the time. All you have to do is set the create to create or replace, then set the advisory to false. let me know if this solves your problem.
Could you post your code? I just tried it like you (passed path, create and false) and it worked. It writes the file without any dialog.
Thomas
Using LV8.0 -------------------------------------------------------------------- Don't be afraid to rate a good answer... 😉 --------------------------------------------------------------------
You say you wire a name and a start path? You should wire the full path for the file to the "path" input of the open file. If you only give a name and a start path, it acts as "I want to save here, preferably with this filename, but ask the user just in case". You need to give the full path (with name) to let the VI know exactly where you want the file (And how it's called).
As one is used to use such common function, one overlooks some details. 😉
Thomas
Using LV8.0 -------------------------------------------------------------------- Don't be afraid to rate a good answer... 😉 --------------------------------------------------------------------
it just helps to wake up stupid every morning (Decaffinated). That way, you learn lots and don't get bored (At least till you've made it to the coffee machine). 😛
As shane pointed out you need to build the full path you can use from the File I/O>>Advanced palette the Open File function directly avoiding the overhead in the File Open VI detecting if it needs to display the dialog or not.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT Don't forget to give Kudos to good answers and/or questions
Thanks for all the help, All is well now, If I provide a start path and file name is not the same as building the path from a path and file name and wiring it to the file path terminal. I should have picked this up and after posting this message I figured that was the problem. Now I generate the unique name, and build a path from it then pass it to the file path and it works in "silent"/no dialog mode. Thanks all -Paul