01-10-2009 01:44 PM
Raymond this is the Spiro , I will get rid of getfilename.vi since I want the .xls by default to be saved on c:\ or C:\spirometry folder.
But if we can make a userfriendly interface for it to save it any where on c:\ with different file name , i would love that also because the getfilenam popup is not really friendly for the users.
I will check back the forum tonight.
01-10-2009 03:20 PM - edited 01-10-2009 03:27 PM
You could make the files all save to a constant location, and just have the user enter a name for the file:
Then the user doesnt need to know the full file path.
You can change the file extention to whatever you want.
In my example its .txt but you can make it .xls or whatever
01-10-2009 03:48 PM
01-10-2009 05:57 PM
altenbach wrote:
Cory: Always use built path instead of manipulating paths as strings. Your version will break on other OS types. Only the filename+extension should be handled as string.
Thanks for the advice Altenbach. I'll use that from now on.
01-12-2009 03:21 PM
I will try that one and let you know what happens
Thank you guys.
01-13-2009 10:26 AM - edited 01-13-2009 10:30 AM
what's that rectangle before string to path ?
Sorry guys I got it , it is Concatenate strings 🙂 ...i wil give it a try 🙂
01-13-2009 10:51 AM
I did that , but it saves it as .xls and i know why , it is because when I run the VI , it saves it automaticaly as .xls unless i put the file name before running ......is there a way to make it take the input file after running ?
I can put a default name but it is not a good idea.
Thank you guys
01-13-2009 11:22 AM
Hi,
There is a file dialog express VI in the Advanced File I/O palette, you can use that to prompt at run time for the file name.
01-13-2009 01:00 PM
Thank you Guys , It did work perfectly 🙂
I used the file dialog with the build path , both together so no one gets MAD 🙂