LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save txt file with out dialogue window opening

hi iam reading values continuously and i have to save this value ina txt file,but the problem is when ever i start my vi it is showing dialogue window,to save the file.Is there any way to save the file automatically in a specific location with out dialogue window opening.

thank u
0 Kudos
Message 1 of 5
(3,132 Views)
You don't mention which function you're using to write the file so I'll assume something like Write to Spreadsheet File or Write Characters to File. Both of these have a file path input. If you don't have a path wired to it, you get a dialog (this is all explained in the contect help for the function). So, to get rid of the dialog box, just wire a path constant to it or have a front panel path control that the user has to fill in before running the VI. Also, both of the functions I mention use the Open/Create/Repalce File function. This has an input for an Advisory Dialog but it is not wired. You might want to modify the VI and save it under a new name and location to avoid that as well.
0 Kudos
Message 2 of 5
(3,122 Views)
Hello,

Connect the file path to the vi input file path. The txt file functions in LabVIEW only open that dialog box if nothing is connected to that input.

Paulo
0 Kudos
Message 3 of 5
(3,120 Views)
What function are you using to write to the file? You should be able to wire a file path to that function, and it will just write to that file. You can do this by placing a File Path Control on the front panel and wiring it to the function you're using to do the actual writing.

If this didn't make sense, maybe it would be easier if you attached your VI.
0 Kudos
Message 4 of 5
(3,119 Views)
Attached VI will appends and saves the multiples of 5 to the file to C:\.txt

LabVIEW 7.0

Regards,
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 5
(3,115 Views)