LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Files without a dialog

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.

Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 1 of 9
(3,855 Views)
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.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 9
(3,843 Views)
Hi Paul

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... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 9
(3,840 Views)
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).

See the attached image.

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 4 of 9
(3,838 Views)
thanks for pointing that out shane I did not see the part of where he said he was giving it a start path and unique name.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 9
(3,834 Views)
Great tip Shane

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... 😉
--------------------------------------------------------------------
0 Kudos
Message 6 of 9
(3,830 Views)
Nah,

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). 😛

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 7 of 9
(3,825 Views)
And just to through another one in.

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
0 Kudos
Message 8 of 9
(3,819 Views)
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
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 9 of 9
(3,812 Views)