LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EDITING FILEPATH THEN SAVING DATA

Hi all, i would like to create a new file that includes a few user paramters such as username, test type, date, serial number. I am having trouble creating the file before it can save to it.
I have attached it for your perusal.
Cheers
Grant
0 Kudos
Message 1 of 13
(3,809 Views)
Hi,

Make sure that the directory where the file will be placed exists. I tried it over here, it returned error 7, I creted the directory and it was ok.
Of course you will not be able to read this file type directly from Excel, to do that use Write to Spreadsheet file instead.

Hope this helps,
Paulo
Message 2 of 13
(3,806 Views)
Hi Paulo, shouldn`t the directory and file be created if none exists? Is it possible to do this in LabVIEW7.1?
0 Kudos
Message 3 of 13
(3,801 Views)
Hello Grant,

Maybe you're right, but it does not create the directory, only the file if it doesn't exist...
There is a function in "File IO" -- "Advanced File Functions" -- New Directory.

Cheers,
Paulo
0 Kudos
Message 4 of 13
(3,799 Views)
Paulo, i have downloaded a file toolbar from OpenG. Here i found New Directory vi.
This creates the directory and sub folders nicely but i am getting an error8 from write to spreadsheet vi.
Any ideas?
0 Kudos
Message 5 of 13
(3,786 Views)
Hi,

Can you please post your code.
It's easier to check it like that.

Paulo
Message 6 of 13
(3,777 Views)
Paulo, here is my latest code.
0 Kudos
Message 7 of 13
(3,773 Views)
Just an quick example of creating new directory

If base directory = C:\
and directory2create (single-level)= C:\IFK

Directory folder of IFK will be created in C:\ upon running this VI

LabVIEW 7.0

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

I've changed your vi:

Hope it helps,
Paulo
Message 9 of 13
(3,763 Views)
Well done Paulo.

Thanks very much for your help in this matter.
0 Kudos
Message 10 of 13
(3,746 Views)