LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adding filename to a user specified path

Solved!
Go to solution

Hi, 

I have a quick question.

I am writing a program that generates many files such as voltage data, resistance data etc.. I want the user to be able to specify just the path, and my program should name the files automatically.

For example if the user specfies the path "C:\measurements" where he wants all the files stored, my program should create the files Voltage.csv, Current.csv, Resistance.csv etc in that path. 

I am using write to spreadsheet. The problem is when I run it, I cant just specify a path alone in the dialog box that pops up. I have to specify the filename too.

Even if I do manage to obtain just the path value, how do I append my various file names to it? I would create the filename as a string which is in a pink color. But the file path datatypes are different having a dark blue-green color. 

How do I get about this?

Any help will be graetly appreciated.

Thank You

0 Kudos
Message 1 of 4
(3,115 Views)

Hi,

make a right clik on a path control, and change the properties to enforce user to choose a folder and not a file :

 

Capture.PNG

 

Best Regards,

 

V-F
0 Kudos
Message 2 of 4
(3,111 Views)

Hi Ramses,

 Thank you for the info. 

 I did try that, but how do I create my own file names as string data type and append it to the path?

0 Kudos
Message 3 of 4
(3,108 Views)
Solution
Accepted by topic author thentangler

Hi,

use the "build path" :

Capture.PNG

V-F
0 Kudos
Message 4 of 4
(3,104 Views)