LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spirometry

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.

 

LV 8.2
Download All
0 Kudos
Message 1 of 9
(4,390 Views)

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

Message Edited by Cory K on 01-10-2009 03:27 PM
Cory K
0 Kudos
Message 2 of 9
(4,374 Views)
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.
Message 3 of 9
(4,365 Views)

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.
I've used a Windows my whole life, so I didnt know that wouldnt work on other OS types.
Cory K
0 Kudos
Message 4 of 9
(4,351 Views)

I will try that one and let you know what happens

Thank you guys.

LV 8.2
0 Kudos
Message 5 of 9
(4,288 Views)

what's that rectangle before string to path ?

Sorry guys I got it , it is Concatenate strings 🙂 ...i wil give it a try 🙂

Message Edited by kmous on 01-13-2009 10:30 AM
LV 8.2
0 Kudos
Message 6 of 9
(4,261 Views)

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

LV 8.2
0 Kudos
Message 7 of 9
(4,255 Views)

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.

Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 8 of 9
(4,245 Views)

Thank you Guys , It did work perfectly 🙂

I used the file dialog with the build path , both together so no one gets MAD 🙂

LV 8.2
Message 9 of 9
(4,230 Views)